Your AI Agent's Config Is Now the Payload How Attackers Are ...#2535
Open
carlospolop wants to merge 1 commit into
Open
Your AI Agent's Config Is Now the Payload How Attackers Are ...#2535carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://tenable.com/blog/ai-coding-assistant-agent-harness-attacks Content Categories: Based on the analysis, this content was categorized under "AI Security > AI Coding Agent Harness Attacks and Persistent Prompt Injection". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Published on July 21, 2026, this post analyzes an AI-agent harness attack observed in the Mini Shai-Hulud worm and its Miasma variant. Instead of leaving the payload only inside a malicious npm, PyPI, or other third-party registry package, the malware rewrites configuration and instruction files used by AI coding assistants. These files form a high-impact per...
🔧 Technical Details
Supply-chain infection followed by harness persistence: A malicious package lifecycle hook such as npm
preinstallcan be used only as the initial execution stage. Once active, malware can place a payload in a persistent user-controlled location, recursively discover AI-assistant configuration files, and modify the auto-run mechanisms that are triggered during future coding sessions. This moves persistence outside the package artifact and allows execution to continue even when defenders focus their inspection on the original dependency.AI-agent startup-hook injection: When an AI coding tool permits commands in an event such as
hooks.SessionStart, malware with filesystem access can parse the existing JSON and append a merge-safe hook instead of overwriting legitimate configuration. A wildcard hook containing"command": "bun run ~/.config/index.js"executes the staged JavaScript whenever a matching ses...🤖 Agent Actions
Done — updated
src/AI/AI-Prompts.md.Added a new section covering:
SessionStarthook injection in Claude/Gemini settings.cursorrules,.windsurfrules, and.github/copilot-instructions.md.mdcabuse withalwaysApply: true+globs: ["**/*"]Also added the Tenable blog URL to the file’s
## Referencessection.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.