pinata-security-cli 0.4.0 → 0.4.1
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/README.md +37 -7
- package/dist/cli/index.js +232 -20
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/src/categories/definitions/security/sql-injection.yml +29 -0
package/package.json
CHANGED
|
@@ -110,6 +110,35 @@ detectionPatterns:
|
|
|
110
110
|
confidence: high
|
|
111
111
|
description: Detects Sequelize literal with interpolation
|
|
112
112
|
|
|
113
|
+
# Generic template literal SQL patterns
|
|
114
|
+
- id: ts-template-sql-select
|
|
115
|
+
type: regex
|
|
116
|
+
language: typescript
|
|
117
|
+
pattern: "`SELECT.*\\$\\{.*\\}`"
|
|
118
|
+
confidence: high
|
|
119
|
+
description: Detects SELECT query with template literal interpolation
|
|
120
|
+
|
|
121
|
+
- id: ts-template-sql-insert
|
|
122
|
+
type: regex
|
|
123
|
+
language: typescript
|
|
124
|
+
pattern: "`INSERT.*\\$\\{.*\\}`"
|
|
125
|
+
confidence: high
|
|
126
|
+
description: Detects INSERT query with template literal interpolation
|
|
127
|
+
|
|
128
|
+
- id: ts-template-sql-update
|
|
129
|
+
type: regex
|
|
130
|
+
language: typescript
|
|
131
|
+
pattern: "`UPDATE.*\\$\\{.*\\}`"
|
|
132
|
+
confidence: high
|
|
133
|
+
description: Detects UPDATE query with template literal interpolation
|
|
134
|
+
|
|
135
|
+
- id: ts-template-sql-delete
|
|
136
|
+
type: regex
|
|
137
|
+
language: typescript
|
|
138
|
+
pattern: "`DELETE.*\\$\\{.*\\}`"
|
|
139
|
+
confidence: high
|
|
140
|
+
description: Detects DELETE query with template literal interpolation
|
|
141
|
+
|
|
113
142
|
# Go patterns
|
|
114
143
|
- id: go-fmt-sprintf-query
|
|
115
144
|
type: regex
|