Add 66 detection-only tool defs for security-relevant libraries#28
Merged
Add 66 detection-only tool defs for security-relevant libraries#28
Conversation
HTTP clients (requests, axios, faraday, guzzle, okhttp, reqwest, etc), template engines (jinja2, ejs, pug, handlebars, thymeleaf, twig, haml, slim), serializers (pyyaml, jackson, snakeyaml, xstream, newtonsoft-json), XML parsers (lxml, nokogiri, ox, xml2js), JWT/auth libraries (pyjwt, jsonwebtoken, passport, devise, omniauth, golang-jwt), process wrappers (execa, shelljs, invoke), file upload (multer, formidable, carrierwave, shrine), and crypto (cryptography, pycryptodome, crypto-js, bcrypt). Each is detected purely via the dependencies primitive since they have no config files or commands. category=build for now since taxonomy carries the real classification (function:http-client, function:templating, etc). 148 sinks total with notes on the conditional cases: jwt.decode without algorithms restriction, $queryRaw as tagged template vs concat, ECB mode, the 72-byte bcrypt truncation. defusedxml has no sinks since it's the safe alternative. Detecting it is a positive signal. Added requests and jinja2 to the python fixture for end-to-end testing and a TestThreatModelPythonLibs asserting they fire ssrf, xss, ssti via their function tags. KB goes from 446 to 512 tool defs. Closes #17
This was referenced Apr 11, 2026
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.
Detection-only defs for libraries that have no config files or commands but matter for threat-model: HTTP clients (
requests,axios,faraday,guzzle,okhttp,reqwest), template engines (jinja2,ejs,pug,handlebars,thymeleaf,twig,haml,slim), serializers (pyyaml,jackson,snakeyaml,xstream,newtonsoft-json), XML parsers (lxml,nokogiri,ox,xml2js), JWT/auth (pyjwt,jsonwebtoken,passport,devise,omniauth,golang-jwt), process wrappers (execa,shelljs,invoke), file upload (multer,formidable,carrierwave,shrine), crypto (cryptography,pycryptodome,crypto-js,bcrypt).Each detected via the
dependenciesprimitive.category=buildsince taxonomy carries the real classification. 148 sinks with notes on conditional danger:jwt.decodewithoutalgorithms=, ECB mode, the 72-byte bcrypt truncation, Jackson'senableDefaultTyping. defusedxml has no sinks since it's the safe alternative — detecting it is a positive signal.Added
requestsandjinja2to the python fixture and a test asserting they firessrf,xss,sstivia theirfunction:http-clientandfunction:templatingtags. KB goes from 446 to 512 defs.Closes #17