skills/mukul975/anthropic-cybersecurity-skills/detecting-s3-data-exfiltration-attempts/Gen Agent Trust Hub
detecting-s3-data-exfiltration-attempts
Pass
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/agent.pyusessubprocess.run()to execute AWS CLI commands. While it correctly uses an argument list to mitigate shell injection, the skill's functionality depends on the presence and credentials of the AWS CLI tool in the execution environment. - [INDIRECT_PROMPT_INJECTION]: The skill ingests and processes untrusted data from CloudTrail logs which may contain adversarial content.
- Ingestion points:
scripts/agent.pyretrieves log entries viaaws cloudtrail lookup-events, capturing fields likeuserAgent,Username, and objectkeynames. - Boundary markers: The script does not apply any delimiters or instructional warnings to the JSON output intended for AI processing, increasing the risk that the agent may interpret data fields as commands.
- Capability inventory: The skill possesses the capability to execute AWS CLI commands, including potentially destructive ones like
s3api put-bucket-policy(defined inblock_external_access). - Sanitization: String fields are truncated to fixed lengths (e.g., 100 characters for keys), but no filtering, escaping, or validation is performed on the content to remove potential prompt injection payloads.
Audit Metadata