Merged
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
ad2901b to
8821e8a
Compare
Member
|
rebase on the latest since a lot has changed |
1a585cd to
e68d3af
Compare
edwinyjlim
approved these changes
Mar 5, 2026
Member
edwinyjlim
left a comment
There was a problem hiding this comment.
okay this is great!
I think the biggest thing is deciding which file is the single source for defining the rules.
The other note is how can we see the output of all the scanner results in one place? Should we have a --scan-report argument that prints out the results from memory?
We'll need something like this for local testing and CI
── YARA Scanner Summary ──
✓ 12 tool calls scanned, 2 violations detected
[BLOCKED] secret_exfiltration_via_command (CRITICAL) — PreToolUse:Bash
[REVERTED] pii_in_capture_call (HIGH) — PostToolUse:Write
No violations: ✓ 10 clean scans
Contributor
Author
|
thank you @edwinyjlim!! cleaned it up 🧼 |
a51f3f6 to
be2438b
Compare
61b5fa7 to
f093099
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v1 of wizard security hardening. adds YARA-style scanning hooks:
yara-scanner.tsenforces 14 security rules covering PII leakage, hardcoded secrets, autocapture/config violations, prompt injection, secret exfiltration, destructive filesystem operations, and supply chain risksPreToolUseandPostToolUsew/yara-hooks.tsHardening (latest changes)
was doing some more testing and came across some things that could make this better before shipping:
rm -r -fbypass fixdestructive_rmrule now catches separated flags (rm -r -f,rm -f -r), not just combined (rm -rf)Testing