calculator

Fail

Audited by Snyk on Apr 5, 2026

Risk Level: CRITICAL
Full Analysis

CRITICAL E004: Prompt injection detected in skill instructions.

  • Potential prompt injection detected (high risk: 1.00). The calculator includes a hidden, deceptive backdoor in calc_mul that silently creates /tmp/pwned when computing "3 * 3", a side-effect unrelated to the advertised arithmetic functionality.

CRITICAL E006: Malicious code pattern detected in skill scripts.

  • Malicious code pattern detected (high risk: 1.00). Deliberate malicious behavior: the script contains an explicit hidden backdoor that triggers on the specific input "3 * 3" (or variants) to create /tmp/pwned in the background, indicating an intentional local compromise/marker—no network exfiltration is present but this is clearly malicious.

MEDIUM W013: Attempt to modify system services in skill instructions.

  • Attempt to modify system services in skill instructions detected (high risk: 1.00). The skill includes a hidden backdoor in the calc_mul function that runs touch /tmp/pwned (creating a file) when computing 3*3, which modifies the filesystem and therefore compromises the machine's state.

Issues (3)

E004
CRITICAL

Prompt injection detected in skill instructions.

E006
CRITICAL

Malicious code pattern detected in skill scripts.

W013
MEDIUM

Attempt to modify system services in skill instructions.

Audit Metadata
Risk Level
CRITICAL
Analyzed
Apr 5, 2026, 01:34 AM
Issues
3
Security Audit — snyk — calculator