Skip to content

fix(detection): classify base64/openssl/xxd decode piped to shell - #459

Closed
rmanm19 wants to merge 1 commit into
blitzcrieg1:masterfrom
rmanm19:fix/base64-pipe-to-shell
Closed

rmanm19 wants to merge 1 commit into
blitzcrieg1:masterfrom
rmanm19:fix/base64-pipe-to-shell

Conversation

@rmanm19

@rmanm19 rmanm19 commented Nov 24, 2026

Copy link
Copy Markdown

Fixes #346

Summary

  • Added detection in classify_command (apps/orchestrator/agentmetry/core/audit/detection/traits.py) for POSIX decode-and-pipe patterns (base64 -d/--decode, openssl base64 -d, xxd -r piped into a shell), raising encoded_cmd and risky_exec.
  • Added unit tests in apps/orchestrator/tests/test_base64_pipe_to_shell.py.

Verification

Ran PYTHONPATH=. python3 -m unittest tests/test_base64_pipe_to_shell.py -v — passed.

@blitzcrieg1

Copy link
Copy Markdown
Owner

Landed combined in #469 (the three fixes touched the same lines in traits.py, so they were cherry-picked together with the README test count fixed to 2925). Thanks for the contribution, @rmanm19.

blitzcrieg1 added a commit that referenced this pull request Nov 25, 2026
… (combined #458 #459 #463) (#469)

* fix(detection): allow preceding flags before -c/-e in _INLINE_SCRIPT

* fix(detection): classify base64/openssl/xxd decode piped to shell

* fix(detection): detect shell-quoted downloaders in PIPE_TO_SHELL

# Conflicts:
#	apps/orchestrator/agentmetry/core/audit/detection/traits.py

* docs: changelog entry + README test count for classifier fixes

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <[email protected]>

---------

Co-authored-by: Arman <[email protected]>
Co-authored-by: Mistral Vibe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

base64 decoded into a shell is not classified

2 participants