feat(probes): add CSV/spreadsheet formula injection probe and detector#1908
Open
eddieran wants to merge 1 commit into
Open
feat(probes): add CSV/spreadsheet formula injection probe and detector#1908eddieran wants to merge 1 commit into
eddieran wants to merge 1 commit into
Conversation
Elicit spreadsheet formula-injection payloads (CWE-1236 / OWASP CSV Injection) and score them. The probe asks the target to emit CSV cell values that begin with a formula trigger and carry a DDE, shell, or exfiltration payload; the detector flags such cells while ignoring benign formulas such as =SUM(A1:A2). This treats the spreadsheet as a downstream consumer of target output, alongside the ansiescape and web_injection probes. Adds probe and detector docs pages. Assisted-by: Claude Signed-off-by: ran <edding.suree@gmail.com>
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.
What
Adds
probes.formula_injection.FormulaInjectionand a matchingdetectors.formula_injection.FormulaInjectioncovering CSV / spreadsheet formula injection (CWE-1236 / OWASP CSV Injection), plus probe and detector docs pages.The probe elicits CSV cell values that begin with a formula trigger (
=,+,-,@) and carry a DDE / shell / exfiltration payload. The detector flags any newline- or comma-delimited cell that begins with a trigger and contains a dangerous token, so benign formulas such as=SUM(A1:A2)do not score — deterministic, no judge/model cost.This treats the spreadsheet as a downstream consumer of target output, alongside
ansiescape(terminal) andweb_injection(browser).Not a duplicate
Scoping issue: #1906. No existing or open PR touches CSV / formula / spreadsheet injection. Distinct from the in-flight
exploitationinjection work (#1870 OS-command, #1871 NoSQL), which injects into code interpreters the target feeds; this is a separate downstream consumer (a spreadsheet), shipped as its own module. Happy to fold intoexploitationif the maintainers prefer.Verification
AI assistance
Written with AI assistance (Claude Code). I'm the submitter and take responsibility for the change.