MITRE ATLAS 2026.10 · AML.T0004 · Elevated severity
Search Application Repositories
Adversaries search public source-code repositories such as GitHub and GitLab for leaked inference API keys, hardcoded system prompts, model-loading scripts, and unsafe deserialization sinks. Even private enterprise AI stacks frequently leak secrets or architectural blueprints through developer forks, CI logs, or sample repos.
Technique dossier overview
- Category
- Infrastructure and access
- Severity
- Elevated
- Attack surface
- Model Weights & Supply Chain · LLM / Prompt Layer · Inference API & Hosting
- Framework maturity
- Demonstrated
- Platforms
- Enterprise
- Tactics
- Reconnaissance
- Catalog entry modified
How the mechanism works
- Automated secret and code scanners monitor public commits, gists, and package repositories matching victim domains or AI SDK patterns.
- Attackers extract hardcoded API credentials, private model-hub tokens, system prompt strings, and tool-calling validation logic.
- Identified code patterns—such as unpinned dependencies, pickle loaders, or unsanitized LLM output sinks—are mapped directly into downstream initial-access or RCE paths.
Detection & telemetry signals
- Secret-scanning alerts identifying exposed LLM provider keys, cloud IAM tokens, or private registry PATs in public commits.
- API usage telemetry showing legitimate provider keys suddenly invoked from unfamiliar IP ranges or high-volume proxy ASNs.
- Repository audit logs flagging unexpected forks or bulk cloning of public AI integration starter kits.
Architectural defensive countermeasures
- Enforce pre-commit and server-side push protection with automated secret scanning across all developer repositories, CI artifacts, and container layers.
- Externalize system prompts, tool policies, and model routing configs into access-controlled runtime stores rather than committing them to shared codebases.
- Rotate exposed API credentials immediately on detection and scope inference keys with strict IP allowlists, budget caps, and least-privilege permissions.
- Audit public sample repositories for unsafe model deserialization calls or unpinned package names susceptible to dependency confusion.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Public repository reconnaissance directly uncovers hardcoded system prompts (LLM07), leaked inference keys or sensitive configs (LLM02), and vulnerable dependency chains (LLM03).
- NIST AI RMF functions
- NIST AI RMF guidance
- Apply NIST AI RMF GOVERN and MANAGE by prohibiting credentials and sensitive prompt logic in source repositories and enforcing automated secret-rotation controls.
Mapped defensive controls
- Limit Public Release of Information AML.M0000
Minimize public exposure of model architectures, system prompts, internal endpoints, RAG schemas, and error traces that accelerate adversary reconnaissance while keeping safety disclosure transparent.
- Control Access to AI Models and Data at Rest AML.M0005
Lock down stored model weights, LoRA adapters, training corpora, vector indexes, and backups with strict least-privilege IAM, private networking, and zero public bucket ACLs.
- Control Access to AI Models and Data in Production AML.M0019
Enforce deterministic runtime authentication, tenant isolation, and per-document RAG authorization outside the LLM context window for every inference and retrieval request.
Documented incidents & exercises (6)
- Backdoor Attack on Deep Learning Models in Mobile Apps AML.CS0013 · Exercise · Jan 18, 2021 · High · Mobile Software & On-Device AI
Grounded in the DeepPayload research (January 2021), this exercise showed how adversaries can backdoor compiled deep-learning models extracted from public mobile application packages without needing training data or fine-tuning. By disassembling the computational graph of a…
- AI Model Tampering via Supply Chain Attack AML.CS0028 · Exercise · Sep 26, 2023 · High · Cloud-Native AI Infrastructure
Documented in September 2023 ("Silent Sabotage: Weaponizing AI Models in Exposed Containers"), researchers identified publicly accessible and misconfigured container registries hosting production AI serving images. With write access to exposed registries, an attacker can pull…
- LLMSmith: RCE Vulnerabilities in LLM-Integrated Applications AML.CS0052 · Exercise · Feb 27, 2025 · Moderate
ATLAS case study: LLMSmith disclosed RCE vulnerabilities in LLM-integrated applications built on vulnerable frameworks.
- Microsoft AI Research 38 TB Internal Storage & Teams Backup Leak via GitHub SAS Token INC-OBS-016 · Incident · Sep 18, 2023 · Critical · Cloud & AI Infrastructure
On September 18, 2023, Wiz Research disclosed that Microsoft's AI research group had inadvertently exposed 38 terabytes of private internal data via an overly permissive Azure Shared Access Signature (SAS) token published in a public GitHub repository…
- Rabbit R1 AI Hardware Companion Hardcoded ElevenLabs and Cloud API Keys Leak INC-OBS-020 · Incident · Jun 25, 2024 · Critical · Consumer AI & Local Runtimes
On June 25, 2024, the reverse-engineering collective Rabbitude publicly disclosed that Rabbit Inc. had shipped hardcoded, high-privilege third-party API keys directly inside its `r1` AI companion codebase (initially accessed May 16, 2024). The leaked credentials included…
- Multi-Agent Ontology Threat-Graph Mining Across 300+ Articles & 854 Repos OBS.EX0211 · Exercise · Dec 29, 2025 · 93 Threats (MITRE ATLAS, AIID & Literature) + 854 GitHub/Python Repositories
Foundjem et al. (2025) combined 93 documented ML threats from MITRE ATLAS, AIID, and security literature with static analysis of 854 GitHub/Python repositories and an ontology-driven RAG pipeline mining over 300 technical papers to map vulnerability clusters across the ML…
Source citation records
Common questions
- What is Search Application Repositories (AML.T0004)?
- Adversaries search public source-code repositories such as GitHub and GitLab for leaked inference API keys, hardcoded system prompts, model-loading scripts, and unsafe deserialization sinks. Even private enterprise AI stacks frequently leak secrets or architectural blueprints through developer forks, CI logs, or sample repos.
- How do you mitigate Search Application Repositories?
- MITRE ATLAS maps 3 mitigations to AML.T0004: Limit Public Release of Information, Control Access to AI Models and Data at Rest, and Control Access to AI Models and Data in Production. Enforce pre-commit and server-side push protection with automated secret scanning across all developer repositories, CI artifacts, and container layers.