Description
oxlint-plugin-lambda-security is the oxlint and Vite+ name for eslint-plugin-lambda-security. It carries the same rules under the same IDs (lambda-security/<rule>), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
Covered natively by oxlint
None of these 14 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.
- Why — a linter nobody reads protects nothing. We would rather miss a finding
than spend your attention on one that was never real.
- How — evidence, not names. A rule fires on what the code does, resolved
through the AST and ESLint's own scope analysis.
- What — every finding carries its fix, in prose for a human and as structured
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
That trade costs recall, and we measure it:
methodology
· results
· a false positive is a bug.
Getting Started
npm install oxlint-plugin-lambda-security --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';
export default defineConfig({
lint: {
jsPlugins: ['oxlint-plugin-lambda-security'],
rules: {
'lambda-security/no-exposed-debug-endpoints': 'error',
'lambda-security/no-hardcoded-credentials-sdk': 'error',
'lambda-security/no-overly-permissive-iam-policy': 'error',
'lambda-security/no-permissive-cors-middy': 'error',
'lambda-security/no-permissive-cors-response': 'error',
'lambda-security/no-secrets-in-env': 'error',
'lambda-security/no-user-controlled-requests': 'error',
},
},
});
oxlint
{
"jsPlugins": ["oxlint-plugin-lambda-security"],
"rules": {
"lambda-security/no-exposed-debug-endpoints": "error",
"lambda-security/no-hardcoded-credentials-sdk": "error",
"lambda-security/no-overly-permissive-iam-policy": "error",
"lambda-security/no-permissive-cors-middy": "error",
"lambda-security/no-permissive-cors-response": "error",
"lambda-security/no-secrets-in-env": "error",
"lambda-security/no-user-controlled-requests": "error"
}
}
These are the rules the plugin recommends (💼 in the table below).
ESLint
Install eslint-plugin-lambda-security instead. It has the same rules, plus presets for ESLint's flat config.
📦 Compatibility
| Package |
Version |
| oxlint |
verified on 1.94.0: CI loads every rule ID through jsPlugins |
| Vite+ |
lint.jsPlugins in vite.config.ts |
| Node.js |
>=22.13.0 |
Rules
Legend
| Icon |
Description |
| 💼 |
Recommended: Included in the recommended preset. |
| ⚠️ |
Warns: Set to warn in recommended preset. |
| 🔧 |
Auto-fixable: Automatically fixable by the --fix CLI option. |
| 💡 |
Suggestions: Providing code suggestions in IDE. |
| 🚫 |
Deprecated: This rule is deprecated. |
| 🟢 |
Type-unaware: AST-only, runs in oxlint JS-plugin tier. |
| 🟡 |
Type-aware (refining): pure-AST primary path; types refine precision. |
| 🟠 |
Type-aware (graceful): requires TS program; silent without it. |
🔗 Related ESLint Plugins
Part of the Interlace ESLint ecosystem — AI-native rules with LLM-optimized error messages:
Security