Back to skill

Security audit

AgentWard Sanitize

Security checks for vulnerabilities and agentic risk

Overview

This local PII redaction skill is mostly coherent, but its JSON workflow can automatically persist raw sensitive data in a predictable sidecar file without strong file-safety controls.

Use this only on trusted local paths, and avoid the JSON + --output workflow unless you explicitly need the raw entity map. Treat any *.entity-map.json file as highly sensitive, delete it when no longer needed, and do not place outputs in shared, synced, indexed, or backed-up directories.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/sanitize.py:484
Finding

Raw PII Is Written to a Predictable Sidecar File Without Secure File Controls

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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 (1)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
87% confidence
Finding

The skill declares executable behavior that reads and writes files but does not specify any explicit tool scope or permission boundaries. In an agent environment, this can allow broader-than-intended file access, increasing the risk that the agent reads unsanitized sensitive inputs or writes sensitive sidecar outputs without policy enforcement.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.