Back to skill

Security audit

Agent Reflection Engine

Security checks for vulnerabilities and agentic risk

Overview

This is a local trace-analysis utility with no hidden execution or exfiltration, but users should treat any generated reflection reports as sensitive.

Install only if you are comfortable running a local Python script on agent trace files. Do not use sensitive traces unless the output location and logs are controlled, and expect the current script to need a bug fix before it works as advertised.

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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The module documentation describes a working self-improvement tool that reads a trace and outputs reflections. However, the report dictionary references report["reflections"] inside its own construction at L81, which will raise an error because report is not yet defined, so the advertised output behavior does not occur.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The tool writes a reflection report to disk by default, and that report is derived from agent execution traces that may contain sensitive reasoning, prompts, observations, or user data. Persisting this material without explicit consent, warning, minimization, or redaction increases the risk of unintended disclosure through local files, backups, shared workspaces, or downstream tooling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

Verbose mode prints the full reflection report to stdout, which can expose sensitive trace-derived content to terminal history, CI logs, orchestrator logs, or monitoring systems. In an agent skill context, execution traces often contain especially sensitive internal reasoning and operational context, making accidental disclosure more likely and more damaging.

Content

No source excerpt is available for this finding.