Skip to content

Tighten _threats.toml: feature-flags mapping, LDAP libs, drop dead scraping mapping#34

Merged
andrew merged 1 commit intomainfrom
tighten-threats-toml
Apr 11, 2026
Merged

Tighten _threats.toml: feature-flags mapping, LDAP libs, drop dead scraping mapping#34
andrew merged 1 commit intomainfrom
tighten-threats-toml

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Apr 11, 2026

Three loose ends from the _threats.toml audit.

Removed the `function:scraping` → `[ssrf]` mapping since no tool def carries that tag. Re-add when scrapy/beautifulsoup/puppeteer defs land.

Added `function:feature-flags` → `[auth_bypass]` mapping so Flipper, LaunchDarkly, and Unleash contribute to threat-model. Feature gates protecting access checks are a real auth bypass surface.

Added four LDAP library defs (`ldap3` for Python, `ldapjs` for Node, `net-ldap` for Ruby, PHP LDAP extension) with `ldap_injection` sinks so the threat isn't Java-only. Each detected via the dependencies primitive.

Closes #31

…d scraping mapping

The function:scraping mapping fired on nothing since no tool def
carries that tag. Removed rather than leaving dead code; re-add when
scrapy/beautifulsoup/puppeteer defs land.

Added function:feature-flags mapping to auth_bypass so
Flipper/LaunchDarkly/Unleash contribute to threat-model. Feature gates
protecting access checks are a real auth bypass surface.

Added ldap3 (Python), ldapjs (Node), net-ldap (Ruby), PHP LDAP
extension as detection-only defs with ldap_injection sinks so that
threat is no longer Java-only. Each detected via dependencies.

Closes #31
@andrew andrew merged commit af94b49 into main Apr 11, 2026
5 checks passed
@andrew andrew deleted the tighten-threats-toml branch April 11, 2026 18:14
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.

Tighten _threats.toml mappings: dead mapping, missing mapping, thin coverage

1 participant