authlock
AuthLock provides legitimate TOTP-based secret encryption but contains an undocumented subprocess execution feature with shell=True that poses command injection risk.
The cmd_open function uses subprocess.run(shell=True) with the user-supplied --exec argument. While the example shows legitimate use for SSH, the command is not sanitized and could allow command injection if metacharacters are included in args.exec.
authlock_cli.py:336 Why this conclusion was reached
2/4 dimensions flagged1 undeclared or violating capabilities were inferred.
No obvious high-risk egress or execution signals were found.
The report includes 0 attack-chain steps and 1 severe findings.
3 dependency or supply-chain issues need attention.
What drove the risk score up
cmd_open uses subprocess.run(shell=True) with user-supplied exec argument without validation
~/.ssh/id_rsa and similar sensitive files are explicitly mentioned in examples
--exec flag allows command execution, partially documented in SKILL.md
Most important evidence
Shell command injection vulnerability in --exec
The cmd_open function uses subprocess.run(shell=True) with the user-supplied --exec argument. While the example shows legitimate use for SSH, the command is not sanitized and could allow command injection if metacharacters are included in args.exec.
authlock_cli.py:336 Sensitive path access not prominently documented
The SKILL.md examples show encrypting ~/.ssh/id_rsa but this sensitive path access is not declared in the capability requirements section.
SKILL.md:45 TOTP seed stored in plaintext config
The TOTP seed is stored in config.json without additional encryption beyond file permissions. While this is standard practice, the seed is the critical secret.
authlock_cli.py:103 Declared capability vs actual capability
SKILL.md:seal/open commands; authlock_cli.py:cmd_seal,cmd_open authlock_cli.py:336 - subprocess.run(cmd, shell=True) SKILL.md:OPENCLAW_WORKSPACE,AUTHLOCK_HOME usage No network requests found Suspicious artifacts and egress
No obvious IOC was extracted.
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| cryptography | * | pip | No | Standard encryption library |
| pyotp | * | pip | No | TOTP generation |
| qrcode | * | pip | No | QR code display |
File composition
authlock_cli.py SKILL.md