Back to skill

Security audit

智能体任务总线

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report that its demo may alter real audit records and flag a forced write to a user-level agent instruction file; some referenced files were unavailable, so evidence is incomplete.

Consider the suspicious verdict and the reported risk that the demo may change real audit records or request changes to a user-level instruction file. The skill’s tool scope is undeclared, and two referenced CONTRACT.md paths were missing, so the available evidence is incomplete. Review those concerns and the missing contract context before deciding whether to install.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

Generating adapters could reasonably support the declared task bus. However, the explicit --write ~/.codex/AGENTS.md --force command requests modification of a user-level agent instruction file, a resource and configuration-changing capability not disclosed by the shared-folder task-bus description. This assessment concerns the shown invocation; the absent implementation prevents confirming the resulting file contents or exact overwrite behavior.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 118)May include surrounding context.

bash
python3 agentbus.py adapter codex          # 也可用 claude-code / cursor / generic
python3 agentbus.py adapter codex --write ~/.codex/AGENTS.md --force

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Result validation accepts aliases that documentation explicitly promises to reject.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The implementation accepts undocumented verdicts such as OK, DONE, and SUCCESS and converts them to COMPLETED despite promising rejection of everything except the documented vocabulary and PASS alias. This bypasses the advertised fail-closed receipt policy and can record nonconforming receipts as successful, although it does not independently prove or validate task quality.

Content

No source excerpt is available for this finding.

The demo can modify real audit records despite promising to touch only temporary data.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The demo's subprocesses inherit AGENTBUS_LEDGER and AGENTBUS_REVIEW_DIR, which override audit destinations even when --root points to a temporary bus. Consequently, a normal demo run in a configured environment can append or update real ledger and review files, contradicting its temporary-data guarantee and contaminating audit history.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · agentbus.py (reported line 1216)May include surrounding context.

python
script = str(SCRIPT)

    def run(*argv):
        proc = subprocess.run(
            [sys.executable, script, "--root", str(root), *argv],
            capture_output=True,
            text=True,

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · tests/test_agentbus.py (reported line 32)May include surrounding context.

python
# -- 帮手

    def run_cli(self, *args, expect_ok=True):
        proc = subprocess.run(
            [sys.executable, str(SCRIPT), "--root", str(self.root), *args],
            capture_output=True,
            text=True,

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · tests/test_agentbus.py (reported line 309)May include surrounding context.

python
# -- 端到端

    def test_demo_runs_end_to_end(self):
        proc = subprocess.run(
            [sys.executable, str(SCRIPT), "demo"], capture_output=True, text=True
        )
        self.assertEqual(proc.returncode, 0, proc.stderr)