|
68 | 68 | "source": "cwe" |
69 | 69 | }, |
70 | 70 | "generic-api-key": { |
71 | | - "categories": [ |
72 | | - "Security" |
73 | | - ], |
| 71 | + "categories": ["Security"], |
74 | 72 | "help": "Do not hardcode passwords or other secrets directly in the source code. Use a secure secret management system instead.", |
75 | 73 | "id": "generic-api-key", |
76 | 74 | "name": "Generic API Key", |
|
81 | 79 | "tags": [] |
82 | 80 | }, |
83 | 81 | "generic-api-key-2": { |
84 | | - "categories": [ |
85 | | - "Security" |
86 | | - ], |
| 82 | + "categories": ["Security"], |
87 | 83 | "help": "Do not hardcode passwords or other secrets directly in the source code. Use a secure secret management system instead.", |
88 | 84 | "id": "generic-api-key-2", |
89 | 85 | "name": "Generic API Key", |
|
92 | 88 | "short_description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.", |
93 | 89 | "source": "secret", |
94 | 90 | "tags": [] |
| 91 | + }, |
| 92 | + "generic-secret": { |
| 93 | + "categories": ["Security"], |
| 94 | + "help": "Do not hardcode passwords or other secrets directly in the source code. Use a secure secret management system instead.", |
| 95 | + "id": "generic-secret", |
| 96 | + "name": "Generic Secret", |
| 97 | + "precision": "very-high", |
| 98 | + "severity": "high", |
| 99 | + "short_description": "Detected a generic secret, which could lead to unauthorized access and sensitive data exposure.", |
| 100 | + "source": "secret", |
| 101 | + "tags": [] |
95 | 102 | } |
96 | 103 | }, |
97 | 104 | "_problemRefs": { |
98 | | - "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee": [ |
99 | | - "generic-api-key", |
100 | | - "CWE-798" |
101 | | - ], |
102 | | - "aaaaaaab-bbbb-cccc-dddd-eeeeeeeeeeee": [ |
103 | | - "generic-api-key-2", |
104 | | - "CWE-798" |
105 | | - ] |
| 105 | + "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee": ["generic-api-key", "CWE-798"], |
| 106 | + "aaaaaaab-bbbb-cccc-dddd-eeeeeeeeeeee": ["generic-api-key-2", "CWE-798"], |
| 107 | + "399f629d-d638-441c-82a0-379e327dc941": ["generic-secret", "CWE-798"] |
106 | 108 | }, |
107 | 109 | "findings": [ |
108 | 110 | { |
|
170 | 172 | "links": {}, |
171 | 173 | "relationships": {}, |
172 | 174 | "type": "findings" |
| 175 | + }, |
| 176 | + { |
| 177 | + "attributes": { |
| 178 | + "cause_of_failure": false, |
| 179 | + "description": "Do not hardcode passwords or other secrets directly in the source code. Use a secure secret management system instead.", |
| 180 | + "evidence": [], |
| 181 | + "finding_type": "secret", |
| 182 | + "key": "bbbbbbbb-bbbb-cccc-dddd-eeeeeeeeeeee", |
| 183 | + "locations": [ |
| 184 | + { |
| 185 | + "file_path": "aws_keys.txt", |
| 186 | + "from_column": 35, |
| 187 | + "from_line": 4, |
| 188 | + "to_column": 75, |
| 189 | + "to_line": 4, |
| 190 | + "type": "source" |
| 191 | + } |
| 192 | + ], |
| 193 | + "policy_modifications": [ |
| 194 | + { |
| 195 | + "pointer": "/attributes/rating/severity", |
| 196 | + "reason": "" |
| 197 | + } |
| 198 | + ], |
| 199 | + "problems": null, |
| 200 | + "rating": { |
| 201 | + "severity": "critical" |
| 202 | + }, |
| 203 | + "risk": {}, |
| 204 | + "suppression": { |
| 205 | + "created_at": "2026-02-05T15:38:05.824Z", |
| 206 | + "expires_at": "2027-09-09T00:00:00Z", |
| 207 | + "justification": "Someone is ignoring this", |
| 208 | + "policy": { |
| 209 | + "id": "90b2fe3f-f811-4447-8f75-e32545d753ea" |
| 210 | + }, |
| 211 | + "status": "pending_ignore_approval" |
| 212 | + }, |
| 213 | + "title": "Generic Secret" |
| 214 | + }, |
| 215 | + "id": "399f629d-d638-441c-82a0-379e327dc941", |
| 216 | + "links": {}, |
| 217 | + "relationships": { |
| 218 | + "policy": { |
| 219 | + "data": { |
| 220 | + "attributes": { |
| 221 | + "policies": [ |
| 222 | + { |
| 223 | + "applied_policy": { |
| 224 | + "action_type": "ignore", |
| 225 | + "ignore": { |
| 226 | + "created": "2026-02-05T15:38:05.824Z", |
| 227 | + "expires": "2027-09-09T00:00:00Z", |
| 228 | + "ignored_by": { |
| 229 | + "email": "someone@snyk.io", |
| 230 | + "id": "00000000-0000-0000-0000-000000000000", |
| 231 | + "name": "Someone" |
| 232 | + }, |
| 233 | + "reason": "Someone is ignoring this", |
| 234 | + "reason_type": "wont-fix", |
| 235 | + "source": "" |
| 236 | + }, |
| 237 | + "rule": { |
| 238 | + "created": "0001-01-01T00:00:00Z", |
| 239 | + "id": "9a589a14-6ea4-49c5-9fd3-618dc3ebbbd1", |
| 240 | + "modified": "0001-01-01T00:00:00Z", |
| 241 | + "name": "", |
| 242 | + "review": "unknown" |
| 243 | + } |
| 244 | + }, |
| 245 | + "id": "90b2fe3f-f811-4447-8f75-e32545d753ea", |
| 246 | + "type": "legacy_policy_snapshot" |
| 247 | + } |
| 248 | + ] |
| 249 | + }, |
| 250 | + "id": "91e77580-0b5d-4ae9-a7b2-4c035018857b", |
| 251 | + "type": "policies" |
| 252 | + }, |
| 253 | + "links": {} |
| 254 | + } |
| 255 | + }, |
| 256 | + "type": "findings" |
173 | 257 | } |
174 | 258 | ] |
175 | 259 | } |
|
0 commit comments