Back to skill

Security audit

strut

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because it reports automatic production configuration changes and a production backup step without adequate warning, while analysis of two referenced files was partial.

Review the automatic drift-fix behavior and the production backup step before installing, and consider whether you need these features. The scan covered 8 of 10 components fully; two referenced files were only partially inspected, so the verdict has medium confidence and the remaining evidence is incomplete.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (18)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 49)May include surrounding context.

md
# Drift & secrets
strut <stack> drift detect --env prod     # config drift vs git
strut <stack> drift images --env prod     # stale container image digests
strut <stack> secrets push --env prod     # sync .env to VPS
strut <stack> keys db:rotate postgres --env prod

# Infrastructure

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/secrets.md (reported line 20)May include surrounding context.

Secrets Sync (env files)

bash
strut my-stack secrets push --env prod       # upload .env to VPS (mode 600)
strut my-stack secrets pull --env prod        # download .env from VPS
strut my-stack secrets diff --env prod        # compare local vs remote key names (masked)
strut my-stack secrets validate --env prod    # check required_vars coverage

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/secrets.md (reported line 24)May include surrounding context.

strut my-stack secrets pull --env prod # download .env from VPS strut my-stack secrets diff --env prod # compare local vs remote key names (masked) strut my-stack secrets validate --env prod # check required_vars coverage strut my-stack secrets hydrate --env prod # populate .env from template + providers strut my-stack secrets set KEY --env prod # set a single secret (value via stdin)

text

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 68)May include surrounding context.

md
| Rotating SSH keys, API keys, DB passwords, env secrets | [references/secrets.md](references/secrets.md) |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 71)May include surrounding context.

md
| Validating stack structure and config before deploy | [references/validation.md](references/validation.md) |

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/drift.md (reported line 56)May include surrounding context.

md
*.log
*.pid
*.sock
.env
.env.local
docker-compose.override.yml
*.backup

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/drift.md (reported line 57)May include surrounding context.

md
*.pid
*.sock
.env
.env.local
docker-compose.override.yml
*.backup
nginx/conf.d/ssl.conf

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/secrets.md (reported line 21)May include surrounding context.

bash
strut my-stack secrets push --env prod       # upload .env to VPS (mode 600)
strut my-stack secrets pull --env prod        # download .env from VPS
strut my-stack secrets diff --env prod        # compare local vs remote key names (masked)
strut my-stack secrets validate --env prod    # check required_vars coverage
strut my-stack secrets hydrate --env prod     # populate .env from template + providers

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/backups.md (reported line 89)May include surrounding context.

md
## Notes

- Databases running inside Docker containers may require `VPS_SUDO=true` in the env file for sudo Docker access.
- SQLite inside a Docker volume needs `BACKUP_SQLITE_USE_DOCKER=true` in `backup.conf`.

## Troubleshooting

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/domains-ssl.md (reported line 56)May include surrounding context.

  • TLS 1.2 and 1.3 only, strong ciphers.
bash
sudo certbot renew --dry-run    # test renewal

Multiple Domains

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/domains-ssl.md (reported line 73)May include surrounding context.

The automated flow uses webroot (no wildcard support). For wildcards, use DNS validation manually:

bash
sudo certbot certonly --manual --preferred-challenges dns -d "*.example.com"
# then copy certs into the nginx volume

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/domains-ssl.md (reported line 89)May include surrounding context.

bash
curl -I http://example.com    # test from outside the VPS
sudo ufw status               # check VPS firewall
docker ps | grep nginx        # nginx running?

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/domains-ssl.md (reported line 96)May include surrounding context.

Certificate obtainment failed

bash
sudo journalctl -u certbot
# Common causes: port 80 blocked by cloud firewall, wrong DNS, or LE rate limit

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/domains-ssl.md (reported line 104)May include surrounding context.

bash
strut my-stack logs nginx --follow --env prod
sudo ls -la /etc/letsencrypt/live/example.com/
strut my-stack exec "docker compose exec nginx nginx -t" --env prod
strut my-stack exec "docker compose exec nginx nginx -s reload" --env prod

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · references/drift.md (reported line 46)May include surrounding context.

md
When enabled: drift detected on a schedule → git config applied automatically → backup before each fix → health checks after → rolls back on failure → alerts. Disable before intentional experiments.

Auto-fix applies changes without asking and keeps running after the session ends. Enable it only when the user has asked for it.

## .drift-ignore

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% 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 · references/drift.md (reported line 98)May include surrounding context.

Drift Not Detected

bash
crontab -l | grep drift          # is the cron installed? (it persists after the session ends, so install it only with the user's approval)
strut my-stack drift detect --env prod
strut my-stack shell --env prod   # SSH reachable?

Docker image referenced without tag or digest: 'docker run -d'.

Medium
Category
MCP Rug Pull
Confidence
75% confidence
Finding

Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.

Content

No source excerpt is available for this finding.

The validation workflow instructs running a full production backup without warning about its data-handling and operational effects.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

This step executes backup all --env prod, rather than merely checking backup health. The document does not warn that this creates backup copies of production data or explain the storage and resource implications of running it against production.

Content

No source excerpt is available for this finding.