@lintsure/core 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +36 -1
- package/dist/src/index.js +230 -21
- package/dist/src/knowledge/cra.js +1 -1
- package/dist/src/knowledge/more.js +5 -5
- package/dist/src/knowledge/owasp-top10.js +7 -7
- package/dist/src/packs.d.ts +8 -0
- package/dist/src/packs.js +11 -1
- package/dist/src/plan.d.ts +3 -0
- package/dist/src/plan.js +35 -0
- package/dist/src/reach.d.ts +32 -0
- package/dist/src/reach.js +206 -0
- package/dist/src/review.js +3 -2
- package/dist/src/rules/index.js +17 -4
- package/dist/src/rules/more.d.ts +4 -0
- package/dist/src/rules/more.js +70 -0
- package/dist/src/rules/owasp.d.ts +2 -0
- package/dist/src/rules/owasp.js +66 -8
- package/dist/src/rules/stack.d.ts +12 -0
- package/dist/src/rules/stack.js +53 -5
- package/dist/src/rules/standards.js +20 -3
- package/dist/src/sarif.d.ts +56 -25
- package/dist/src/sarif.js +9 -1
- package/dist/src/types.d.ts +41 -0
- package/docs/README.md +13 -0
- package/docs/agents.md +107 -0
- package/docs/frameworks.md +147 -0
- package/docs/rules.md +682 -0
- package/package.json +42 -41
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
<!-- Generated from Lintsure 0.3.12 by scripts/build-docs.mjs. -->
|
|
2
|
+
# Frameworks
|
|
3
|
+
|
|
4
|
+
## EU AI Act (`eu-ai-act`)
|
|
5
|
+
The EU's law on AI sorts AI uses by how much harm they could do. A few uses are banned. Uses that affect people's lives, like credit, hiring or education, are high-risk and need human oversight, logs, documentation and risk management. Chatbots and AI-made media need to be open about being AI. Most other AI only needs staff to understand the tools they use.
|
|
6
|
+
|
|
7
|
+
Applies to: Anyone who builds an AI system and offers it in the EU (a provider), and anyone who uses one in their work in the EU (a deployer), even if the company is based elsewhere.
|
|
8
|
+
|
|
9
|
+
- 2025-02-02: Banned practices and the AI literacy duty start to apply.
|
|
10
|
+
- 2025-08-02: Rules for general-purpose AI model providers start to apply.
|
|
11
|
+
- 2026-08-02: General date of application, including most openness duties for chatbots and AI content.
|
|
12
|
+
- 2026-12-02: New bans on AI that makes non-consensual intimate images or child abuse material. Deadline for older generative systems to mark their output as AI-made.
|
|
13
|
+
- 2027-12-02: High-risk rules apply to uses listed in Annex III (credit, hiring, education and others). Moved later by the 2026 Digital Omnibus.
|
|
14
|
+
- 2028-08-02: High-risk rules apply to AI that is a safety part of products covered by Annex I (machinery, medical devices and others).
|
|
15
|
+
|
|
16
|
+
- Art. 4 AI literacy [outside code]: Take steps so the people who build and use your AI understand it well enough for their role. Softened in 2026 from a strict duty to a duty to support.
|
|
17
|
+
- Art. 5 Banned practices [partly in code]: Some uses are not allowed at all, for example manipulating people in harmful ways, social scoring, reading emotions at work or school, and (from December 2026) making intimate images of real people without consent. Rules: ai.emotion-or-biometric.
|
|
18
|
+
- Art. 6 + Annex III Is it high-risk? [partly in code]: AI used for things like credit, hiring, education, essential services or biometrics is high-risk unless it only does a narrow, preparatory task and doesn't really shape the outcome. Rules: ai.automated-decision.
|
|
19
|
+
- Art. 9 Risk management [outside code]: High-risk systems need a running process to find, test and reduce risks across the system's life.
|
|
20
|
+
- Art. 10 Data and data governance [partly in code]: Training and test data must fit the purpose, be checked for bias and gaps, and be handled with care.
|
|
21
|
+
- Art. 11 Technical documentation [outside code]: Keep a description of how the system works, what it's for, its limits and how it was tested.
|
|
22
|
+
- Art. 12 Record-keeping (logs) [checked in code]: The system should automatically log what it did, so events can be traced later. Rules: ai.call-not-logged.
|
|
23
|
+
- Art. 13 Instructions for use [outside code]: Give the people who deploy your system clear instructions: what it does, how well, its limits and how to oversee it.
|
|
24
|
+
- Art. 14 Human oversight [partly in code]: A person must be able to understand the output, ignore it, override it or stop the system. Rules: ai.automated-decision.
|
|
25
|
+
- Art. 15 Accuracy, robustness, security [partly in code]: The system should perform as stated, cope with errors and resist attacks such as data poisoning or prompt injection. Rules: secret.in-source, sql.string-built.
|
|
26
|
+
- Art. 17 Quality management system [outside code]: High-risk providers need a written quality system covering design, testing, changes and incidents. Smaller firms can keep it simpler.
|
|
27
|
+
- Art. 26 Duties when you use high-risk AI [outside code]: If you use someone else's high-risk AI, follow its instructions, assign human oversight, watch how it works and keep its logs.
|
|
28
|
+
- Art. 50(1) Tell people they're talking to AI [checked in code]: If your AI talks with people, they must know it's an AI unless that's obvious. Rules: ai.hides-being-ai.
|
|
29
|
+
- Art. 50(2) Mark AI-made content [partly in code]: AI-generated images, audio, video and text should carry a machine-readable mark that they're AI-made. Rules: ai.synthetic-media.
|
|
30
|
+
- Art. 50(4) Label deepfakes [partly in code]: If you publish realistic fake media of people, places or events, say that it's AI-made. Rules: ai.synthetic-media.
|
|
31
|
+
|
|
32
|
+
Our own summary, checked on 2026-11-07. Read the official text for anything you rely on.
|
|
33
|
+
|
|
34
|
+
## GDPR (`gdpr`)
|
|
35
|
+
The EU's privacy law. If you handle data about people in the EU, you need a valid reason for each use, should collect only what you need, keep it safe, tell people what you do, and let them see, fix or delete their data. AI doesn't get special treatment: training on or feeding personal data into a model is still processing.
|
|
36
|
+
|
|
37
|
+
Applies to: Any organization that handles personal data while based in the EU, or that offers goods or services to people in the EU or tracks their behavior there.
|
|
38
|
+
|
|
39
|
+
- 2018-05-25: GDPR applies in full across the EU and EEA. There is no transition period left: every duty below applies today.
|
|
40
|
+
|
|
41
|
+
- Art. 5 Core principles [partly in code]: Use data fairly and openly, only for clear purposes, collect the minimum, keep it accurate, don't keep it longer than needed, and keep it secure. Rules: pii.to-analytics, pii.logged.
|
|
42
|
+
- Art. 6 A lawful reason [outside code]: Every use of personal data needs one of six legal bases, such as consent, a contract, or legitimate interests weighed against people's rights.
|
|
43
|
+
- Art. 7 Consent done right [partly in code]: If you rely on consent, it must be freely given, specific, informed and as easy to withdraw as to give. No pre-ticked boxes.
|
|
44
|
+
- Art. 9 Sensitive data [partly in code]: Health, biometric, ethnic, religious, political, sexual and union data is off-limits unless a specific exception applies. Rules: ai.emotion-or-biometric.
|
|
45
|
+
- Art. 12–15 Transparency and access [outside code]: Tell people clearly what you collect and why, and give them a copy of their data when they ask.
|
|
46
|
+
- Art. 17 Right to erasure [partly in code]: When someone asks, and no exception applies, delete their data everywhere you hold it, including backups on rotation and third-party tools.
|
|
47
|
+
- Art. 22 Automated decisions [partly in code]: People have the right not to be subject to fully automated decisions with legal or similarly big effects, unless an exception applies and safeguards like human review are in place. Rules: ai.automated-decision.
|
|
48
|
+
- Art. 25 Privacy by design and default [partly in code]: Build privacy in from the start, and make the most private setting the default. Rules: pii.in-url, pii.to-analytics.
|
|
49
|
+
- Art. 28 Processors [partly in code]: Vendors that handle personal data for you need a contract with specific data protection terms. Rules: pii.to-analytics.
|
|
50
|
+
- Art. 30 Records of processing [outside code]: Keep a list of what personal data you process, why, with whom you share it and how long you keep it.
|
|
51
|
+
- Art. 32 Security of processing [checked in code]: Protect personal data with security that fits the risk: encryption, access control, testing and the ability to recover. Rules: pii.logged, secret.in-source, transport.plain-http, transport.tls-verify-off, crypto.weak-password-hash, sql.string-built, pii.in-url, supabase.rls-disabled, supabase.policy-allows-all, supabase.service-key-in-client, supabase.function-no-auth, secret.public-env, mobile.token-in-plain-storage, mobile.cleartext-traffic, mobile.backup-allowed.
|
|
52
|
+
- Art. 33–34 Breach notification [outside code]: Tell the regulator within 72 hours of learning about a risky breach, and tell affected people when the risk to them is high.
|
|
53
|
+
- Art. 35 Impact assessment (DPIA) [outside code]: Before risky processing, such as large-scale profiling or new AI uses on personal data, assess and reduce the risks.
|
|
54
|
+
- Art. 44–49 Transfers outside the EU [partly in code]: Sending personal data outside the EU needs an approved route, such as an adequacy decision or standard contract clauses.
|
|
55
|
+
|
|
56
|
+
Our own summary, checked on 2026-11-09. Read the official text for anything you rely on.
|
|
57
|
+
|
|
58
|
+
## OWASP Top 10:2025 (`owasp-top10`)
|
|
59
|
+
The OWASP Top 10 is a widely used awareness list of the ten most serious kinds of web application security risk, built from real test data and a community survey. It isn't a law or a certification, but customers, security questionnaires and many other standards point to it. The 2025 edition adds software supply chain failures and the mishandling of errors.
|
|
60
|
+
|
|
61
|
+
Applies to: Any team building a web application or API. It's voluntary, but often expected by business customers and referenced in security reviews.
|
|
62
|
+
|
|
63
|
+
- A01:2025 Broken Access Control [partly in code]: People must only reach the data and actions meant for them. This covers file paths, redirects, requests your server makes on a user's behalf (SSRF), forged requests from other sites, and permissions kept where users can change them. Rules: path.user-input, redirect.open, ssrf.user-url, csrf.disabled, fs.world-writable, cors.any-origin, cookie.trusted-role, supabase.rls-disabled, supabase.policy-allows-all, supabase.service-key-in-client, supabase.function-no-auth, authz.no-owner-check, ws.no-origin-check, cloud.public-bucket.
|
|
64
|
+
- A01:2025 (ownership checks) Every record is checked against the signed-in user [outside code]: Whether each endpoint checks that the record belongs to the person asking (often called IDOR). A line-by-line code check can't tell; it needs design review and testing with two accounts.
|
|
65
|
+
- A02:2025 Security Misconfiguration [partly in code]: Safe settings by default: debug off, real host names, strong secret keys, cookies marked secure, XML parsers that don't load outside files, and errors that don't reveal internals. Rules: config.debug-on, agent.permissions-allow-all, config.allowed-hosts-any, config.default-secret-key, xml.external-entities, cors.any-origin, session.cookie-insecure, error.stack-to-client, build.sourcemaps-public, release.env-not-ignored, k8s.privileged, graphql.introspection.
|
|
66
|
+
- A02:2025 (deployed settings) Server, cloud and header configuration in production [outside code]: What is actually running: server and cloud settings, open ports, default accounts, security headers on real responses. These need a scan of the deployed system.
|
|
67
|
+
- A03:2025 Software Supply Chain Failures [partly in code]: The code you didn't write: dependencies, build tools and CI. Versions should be pinned, install scripts shouldn't fetch code, CI actions should be pinned, untrusted pull requests must not run with your secrets, and text from issues or pull requests must never become part of a CI command. Rules: deps.unpinned-version, deps.install-script, agent.config-runs-remote-code, agent.instructions-unsafe, ci.action-unpinned, ci.prt-checkout-head, ci.write-all-permissions, ci.script-injection, update.unverified-download.
|
|
68
|
+
- A03:2025 (known vulnerabilities) Dependencies with known vulnerabilities [outside code]: Whether any dependency version has a published vulnerability, and whether it's maintained. This needs vulnerability advisory data, which Lintsure doesn't download, so use a dependency scanner alongside it.
|
|
69
|
+
- A04:2025 Cryptographic Failures [checked in code]: Protect data with sound cryptography: HTTPS everywhere, certificate checks on, strong password hashing, modern ciphers, unpredictable tokens, signed tokens that are verified, and no keys in code. Rules: crypto.weak-password-hash, crypto.weak-random-token, crypto.weak-cipher, jwt.unverified, transport.plain-http, transport.tls-verify-off, secret.in-source, secret.public-env, mobile.token-in-plain-storage, mobile.cleartext-traffic, jwt.weak-secret, crypto.unsafe-compare.
|
|
70
|
+
- A04:2025 (key management) Key management and encryption at rest [outside code]: How encryption keys are created, stored, rotated and retired, and whether databases and backups are encrypted. These live in your infrastructure, not your code.
|
|
71
|
+
- A05:2025 Injection [checked in code]: Keep data and code apart, so input can't become part of a SQL query, a shell command, a template, HTML on the page or code that gets run. Rules: sql.string-built, cmd.shell-built, code.eval, xss.raw-html, template.user-string, nosql.operator-input.
|
|
72
|
+
- A06:2025 Insecure Design [partly in code]: Security planned in from the start: limits on uploads, only the fields users may change, sensitive data kept out of URLs. Most of this category is about design, not individual lines. Rules: upload.unrestricted, mass-assignment, pii.in-url, mobile.webview-any-origin, html.tabnabbing.
|
|
73
|
+
- A06:2025 (threat modelling) Threat modelling and abuse cases [outside code]: Thinking through how a feature could be misused before building it: rate limits, business rule abuse, trust boundaries. Code checks can't show whether this happened.
|
|
74
|
+
- A07:2025 Authentication Failures [partly in code]: Logins and sessions that hold up: no passwords in code, strong secrets, tokens that expire and are verified, and session cookies protected from scripts and plain HTTP. Rules: auth.hardcoded-password, jwt.no-expiry, jwt.unverified, config.default-secret-key, session.cookie-insecure, secret.in-source, transport.tls-verify-off, auth.no-rate-limit, jwt.no-algorithm-pin, jwt.weak-secret.
|
|
75
|
+
- A07:2025 (login protections) Brute-force protection, MFA and account recovery [outside code]: Rate limiting and lockout on login, multi-factor authentication, and safe password reset flows. These need testing against the running app.
|
|
76
|
+
- A08:2025 Software or Data Integrity Failures [partly in code]: Don't trust code or data you haven't checked: no unsafe deserialisation, integrity checks on third-party scripts, and no trust in values users can change. Rules: deserialize.unsafe, html.script-no-sri, mass-assignment, cookie.trusted-role, ci.prt-checkout-head, proto.pollution.
|
|
77
|
+
- A08:2025 (signed releases) Signed builds and updates [outside code]: Whether builds, packages and updates are signed and verified from source to release.
|
|
78
|
+
- A09:2025 Security Logging and Alerting Failures [partly in code]: Logs that help instead of hurt: no secrets or personal data in them, no way to forge entries, and records of important events. Rules: log.secret, log.injection, pii.logged, ai.call-not-logged.
|
|
79
|
+
- A09:2025 (alerting) Monitoring, alerting and incident response [outside code]: Whether anyone is alerted when something suspicious happens, how long logs are kept, and how incidents are handled.
|
|
80
|
+
- A10:2025 Mishandling of Exceptional Conditions [partly in code]: Errors handled on purpose: none silently ignored, none shown to users in detail, and failures that leave the system closed rather than open. Rules: error.empty-catch, error.stack-to-client, config.debug-on.
|
|
81
|
+
- A10:2025 (behaviour under failure) Safe behaviour when things fail [outside code]: How the app behaves when a database, payment provider or other dependency is slow or down, and whether access checks fail closed. This needs testing under failure.
|
|
82
|
+
|
|
83
|
+
Our own summary, checked on 2026-11-08. Read the official text for anything you rely on.
|
|
84
|
+
|
|
85
|
+
## EU Cyber Resilience Act (`cra`)
|
|
86
|
+
The Cyber Resilience Act sets security rules for software and connected devices sold in the EU. Makers must build products that are secure by default, ship without known exploitable vulnerabilities, fix vulnerabilities with free security updates for the support period, and report actively exploited vulnerabilities quickly. Most products can assess themselves; some categories, such as password managers, VPNs and firewalls, face stricter checks.
|
|
87
|
+
|
|
88
|
+
Applies to: Businesses that make, import or sell software or connected hardware in the EU, including apps and the cloud back ends they need to work. Open source made outside any commercial activity is out of scope, and some sectors with their own rules (such as medical devices and cars) are excluded.
|
|
89
|
+
|
|
90
|
+
- 2024-12-10: The Act enters into force.
|
|
91
|
+
- 2026-09-11: Reporting duties start: actively exploited vulnerabilities and severe incidents must be reported (early warning within 24 hours, notification within 72 hours).
|
|
92
|
+
- 2027-12-11: Everything else applies: the security requirements, conformity assessment and CE marking.
|
|
93
|
+
|
|
94
|
+
- Annex I Part I (2)(b) Secure by default configuration [partly in code]: The product ships with safe settings switched on: debug off, real host names, strong secrets, secure cookies, nothing left open that the user has to close. Rules: config.debug-on, config.allowed-hosts-any, config.default-secret-key, cors.any-origin, build.sourcemaps-public, release.env-not-ignored, csrf.disabled, session.cookie-insecure.
|
|
95
|
+
- Annex I Part I (2)(d) Protection from unauthorised access [partly in code]: Logins, tokens and permissions that keep people out of what isn't theirs: no built-in passwords, verified tokens that expire, and access rules on data. Rules: auth.hardcoded-password, jwt.unverified, jwt.no-expiry, supabase.rls-disabled, supabase.policy-allows-all, supabase.service-key-in-client, supabase.function-no-auth, cookie.trusted-role, path.user-input, fs.world-writable.
|
|
96
|
+
- Annex I Part I (2)(e) Confidentiality of data [checked in code]: Data stored or sent is protected with current encryption, and keys stay out of code and out of the browser. Rules: transport.plain-http, transport.tls-verify-off, crypto.weak-cipher, crypto.weak-password-hash, crypto.weak-random-token, secret.in-source, secret.public-env.
|
|
97
|
+
- Annex I Part I (2)(f) Integrity of data and programs [checked in code]: Input can't change data, commands or code it shouldn't: no injection, no unsafe parsing, and checks on scripts loaded from elsewhere. Rules: sql.string-built, cmd.shell-built, code.eval, deserialize.unsafe, xss.raw-html, template.user-string, nosql.operator-input, xml.external-entities, mass-assignment, html.script-no-sri.
|
|
98
|
+
- Annex I Part I (2)(g) Data minimisation [partly in code]: Only the data the product needs is processed, and it doesn't leak into logs, URLs or analytics. Rules: pii.logged, pii.in-url, pii.to-analytics.
|
|
99
|
+
- Annex I Part I (2)(j) Limited attack surface [partly in code]: Fewer ways in: no open redirects, no server requests to any address a user picks, limits on uploads, and errors that don't reveal internals. Rules: ssrf.user-url, redirect.open, upload.unrestricted, error.stack-to-client.
|
|
100
|
+
- Annex I Part I (2)(l) Security logging [partly in code]: Security-relevant activity is recorded so problems can be spotted, without putting secrets in the logs or letting entries be forged. Users should be able to opt out where it fits. Rules: log.secret, log.injection.
|
|
101
|
+
- Annex I Part I (2)(a) No known exploitable vulnerabilities [outside code]: Nothing ships with a vulnerability that's already public and exploitable, including in dependencies. This needs advisory data, which Lintsure doesn't download, so use a dependency scanner alongside it.
|
|
102
|
+
- Annex I Part II (1) Components identified, including an SBOM [partly in code]: You know what's in your product: pinned dependencies, no unexplained compiled files, and a machine-readable software bill of materials (SBOM) covering at least the top-level components. Rules: repo.no-sbom, repo.binary-committed, deps.unpinned-version, deps.install-script.
|
|
103
|
+
- Annex I Part II (5) Coordinated vulnerability disclosure policy [partly in code]: A published way for anyone to report a vulnerability to you, and a process for handling reports. Rules: repo.no-security-policy.
|
|
104
|
+
- Annex I Part II (7) Updates distributed securely [partly in code]: Builds and updates can't be swapped or tampered with: pinned CI steps, workflow tokens limited to what they need, untrusted pull requests and issue text kept away from secrets and commands, and nothing run straight from a download without a check. Rules: update.unverified-download, ci.action-unpinned, ci.prt-checkout-head, ci.write-all-permissions, ci.script-injection.
|
|
105
|
+
- Annex I Part II (2) Vulnerabilities fixed without delay [partly in code]: When a component you use gets a security fix, it reaches your product quickly. Automated update pull requests are the usual way to make that happen. Rules: repo.no-dependency-updates.
|
|
106
|
+
- Annex I Part II (2), (8) Free security updates for the support period [outside code]: Vulnerabilities are fixed without delay and security updates are free for the support period, which is at least five years unless the product is expected to be used for less, and stated when it's sold (Art. 13(8)).
|
|
107
|
+
- Art. 13(2) Cybersecurity risk assessment [outside code]: A documented assessment of the product's security risks, kept up to date and used to decide which requirements apply and how.
|
|
108
|
+
- Art. 14 Reporting exploited vulnerabilities and severe incidents [outside code]: An actively exploited vulnerability or severe incident must be reported through the EU single reporting platform: early warning within 24 hours, notification within 72 hours, and a final report later. This already applies.
|
|
109
|
+
- Annex V, VII; Art. 30-32 Technical documentation, declaration and CE marking [outside code]: Technical documentation, an EU declaration of conformity and the CE marking, using the right assessment route for the product's category. Documentation is kept for ten years.
|
|
110
|
+
|
|
111
|
+
Our own summary, checked on 2026-11-09. Read the official text for anything you rely on.
|
|
112
|
+
|
|
113
|
+
## OWASP Top 10 for LLM Applications 2026 (`owasp-llm`)
|
|
114
|
+
The ten most serious security risks in apps built on large language models: prompt injection, leaking sensitive data, too much agency, supply chain, poisoned data, runaway usage, misinformation, exposed hidden context, weak vector stores and unsafe use of model output. It's an awareness list, not a law or certification.
|
|
115
|
+
|
|
116
|
+
Applies to: Any team that builds a feature on an AI model: chatbots, assistants, agents, retrieval (RAG) and AI features inside other apps.
|
|
117
|
+
|
|
118
|
+
- LLM01:2026 Prompt Injection [partly in code]: User text, web pages or files can carry instructions that change what the model does. Keep instructions and user content apart, and limit what the model can do. Rules: llm.user-input-in-system-prompt, agent.instructions-unsafe, llm.client-controls-system.
|
|
119
|
+
- LLM02:2026 Sensitive Information Disclosure [partly in code]: Keys, personal data and internal details must not reach the model, its logs or its answers unless they're meant to. Rules: secret.in-source, secret.public-env, pii.logged, log.secret.
|
|
120
|
+
- LLM03:2026 Excessive Agency [partly in code]: Tools and permissions given to an agent should be the minimum it needs, with a person approving anything risky. Rules: agent.permissions-allow-all.
|
|
121
|
+
- LLM04:2026 Supply Chain [partly in code]: Models, datasets, plugins and packages come from others. Pin and check them like any dependency. Rules: deps.unpinned-version, deps.install-script, agent.config-runs-remote-code.
|
|
122
|
+
- LLM05:2026 Data and Model Poisoning [outside code]: Training, fine-tuning or retrieval data can be tampered with to change the model's behaviour.
|
|
123
|
+
- LLM06:2026 Unbounded Consumption [partly in code]: Limit output size, request rate and cost per user, so one person can't run up a bill or take the service down. Rules: llm.no-output-limit, ai.call-not-logged, llm.unbounded-agent-loop.
|
|
124
|
+
- LLM07:2026 Misinformation [outside code]: Models state wrong things confidently. Show sources, say it's AI and keep a person in the loop where it matters.
|
|
125
|
+
- LLM08:2026 Hidden Context Exposure [partly in code]: Assume users can read anything in the model's context: system prompt, retrieved documents, tool results and memory. Don't put secrets or access rules there, and don't mix user text into instructions. Rules: llm.user-input-in-system-prompt.
|
|
126
|
+
- LLM09:2026 Vector and Embedding Weaknesses [outside code]: Retrieval stores must keep one user's or customer's documents away from another's, and resist planted content.
|
|
127
|
+
- LLM10:2026 Improper Output Handling [checked in code]: Treat what the model returns as untrusted. Never run it as code, a shell command or SQL, and escape it before showing it as HTML. Rules: llm.output-to-sink.
|
|
128
|
+
|
|
129
|
+
Our own summary, checked on 2026-11-09. Read the official text for anything you rely on.
|
|
130
|
+
|
|
131
|
+
## CWE Top 25 (2025) (`cwe-top25`)
|
|
132
|
+
MITRE's yearly list of the 25 most dangerous software weaknesses, ranked from real vulnerability data. Security teams, scanners and buyers use CWE numbers as a shared language, so mapping findings to them makes reports easy to compare.
|
|
133
|
+
|
|
134
|
+
Applies to: Anyone writing software. It's a reference list, not a law or certification.
|
|
135
|
+
|
|
136
|
+
- CWE-79, CWE-89, CWE-78, CWE-77, CWE-94 Injection: scripting, SQL, commands and code [checked in code]: Input never becomes part of a page, query, command or code without the right handling. Rules: xss.raw-html, template.user-string, sql.string-built, cmd.shell-built, code.eval, llm.output-to-sink.
|
|
137
|
+
- CWE-862, CWE-863, CWE-284, CWE-639 Missing or broken authorization [partly in code]: Every action and record is checked against what the user may do. Rules: supabase.rls-disabled, supabase.policy-allows-all, supabase.service-key-in-client, cookie.trusted-role, fs.world-writable, mass-assignment.
|
|
138
|
+
- CWE-352 Cross-site request forgery [checked in code]: Other sites can't make a signed-in user's browser perform actions. Rules: csrf.disabled.
|
|
139
|
+
- CWE-22, CWE-434 Path traversal and dangerous uploads [checked in code]: File paths and uploads are limited to what's expected. Rules: path.user-input, upload.unrestricted.
|
|
140
|
+
- CWE-502, CWE-20 Unsafe deserialization and input validation [partly in code]: Untrusted data is validated and never turned back into objects unsafely. Rules: deserialize.unsafe, nosql.operator-input, mass-assignment.
|
|
141
|
+
- CWE-918 Server-side request forgery [checked in code]: The server doesn't fetch any address a user picks. Rules: ssrf.user-url.
|
|
142
|
+
- CWE-200 Exposure of sensitive information [partly in code]: Personal data, secrets and internals don't leak into logs, URLs, errors or the browser. Rules: pii.logged, pii.in-url, log.secret, error.stack-to-client, build.sourcemaps-public, secret.public-env, release.env-not-ignored.
|
|
143
|
+
- CWE-770 Resources without limits [partly in code]: Expensive work, including AI calls, has limits. Rules: llm.no-output-limit.
|
|
144
|
+
- CWE-306 Missing authentication for a critical function [outside code]: Every sensitive endpoint requires a signed-in user. Needs a route-by-route review.
|
|
145
|
+
- CWE-787, 416, 125, 120, 476, 121, 122 Memory safety [outside code]: Buffer and pointer errors in C and C++. Lintsure doesn't check these languages; use a memory-safe language or a dedicated tool.
|
|
146
|
+
|
|
147
|
+
Our own summary, checked on 2026-11-09. Read the official text for anything you rely on.
|