wr
hn
Top
New
Best
Ask
Show
Jobs
Back
p
peaktwilight
Joined 7 months ago
Karma
20
Submissions
22
Member since
Mar 20
View on Hacker News
Recent submissions
Comment · 6 months ago
update: filed #9 to build a labeled corpus and publish per-rule numbers.
Comment · 6 months ago
true, right now it's AST pattern matching with `pattern-inside`/`pattern-not-inside` for syntactic scoping. I changed the description. Intraprocedural dataflow is the next step (tracking in #10) and while trying to keep it close linter latency.
Comment · 6 months ago
update: `NoPickle`/`NoYamlLoad` string-match the callee text, so `import pickle as p; p.loads(...)` and `from pickle import loads as d` slip past. Filed as #7 with a fix plan (intraprocedural alias table). Thanks!
Comment · 6 months ago
thx for the tip, I'll measure and see if LoC time is stable accross different codebases. Mind if I cite it in the readme (anonymized)?
Comment · 6 months ago
didn't measure that yet, but definitely thinking of adding it into scope soon
Comment · 6 months ago
cool, will check it out thanks!
Comment · 6 months ago
Appreciate it! cloudformation isn't in scope today but the perf approach (tree-sitter + parallel file walk + rule pre-filtering) transfers, so happy to check it out.
Comment · 6 months ago
quick correction: built-in rules are compiled in, but foxguard also loads Semgrep-compatible YAML rules at runtime via --rules <path> (or .foxguard.yml). You can add or modify rules without touching the binary. The rust-coded rules are just the default pack for zero-config speed :D