@enki-dev-expert/global-engineering-standards 0.0.0-stage → 0.1.0
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/AGENTS.md +303 -0
- package/CHANGELOG.md +23 -0
- package/CITATION.cff +21 -0
- package/CODE_OF_CONDUCT.md +13 -0
- package/CONTRIBUTING.md +27 -0
- package/LICENSE +21 -0
- package/README.md +159 -2
- package/SECURITY.md +25 -0
- package/dist/cli.js +40 -0
- package/dist/content.js +71 -0
- package/dist/filesystem.js +83 -0
- package/dist/installer.js +243 -0
- package/dist/layout.js +42 -0
- package/dist/transaction.js +143 -0
- package/docs/ai-and-llm.md +1312 -0
- package/docs/architecture.md +1007 -0
- package/docs/cost-engineering.md +1322 -0
- package/docs/data.md +993 -0
- package/docs/governance.md +1744 -0
- package/docs/mobile-and-web.md +1362 -0
- package/docs/observability.md +1345 -0
- package/docs/platforms-and-applications.md +1581 -0
- package/docs/privacy.md +566 -0
- package/docs/quality-and-testing.md +1278 -0
- package/docs/scalability.md +1012 -0
- package/docs/security.md +373 -0
- package/handbook/claude-plugin.md +31 -0
- package/handbook/compatibility.md +27 -0
- package/handbook/recovery.md +29 -0
- package/handbook/releasing.md +50 -0
- package/handbook/security-review.md +41 -0
- package/handbook/signing.md +18 -0
- package/handbook/validation.md +50 -0
- package/package.json +65 -4
- package/scripts/content-baseline.json +25 -0
- package/skills/engineering-architecture-review/SKILL.md +1531 -0
- package/skills/engineering-cost-estimate/SKILL.md +1599 -0
- package/skills/engineering-database-review/SKILL.md +1364 -0
- package/skills/engineering-privacy-check/SKILL.md +1295 -0
- package/skills/engineering-safe-implementation/SKILL.md +1502 -0
- package/skills/engineering-security-standards-check/SKILL.md +1112 -0
- package/src/cli.ts +45 -0
- package/src/content.ts +82 -0
- package/src/filesystem.ts +94 -0
- package/src/installer.ts +280 -0
- package/src/layout.ts +70 -0
- package/src/transaction.ts +167 -0
- package/templates/ADR.md +1302 -0
- package/templates/AUDIT_REPORT.md +1693 -0
- package/templates/EXCEPTIONS.md +647 -0
- package/templates/PROJECT_AGENTS.md +868 -0
|
@@ -0,0 +1,1112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: engineering-security-standards-check
|
|
3
|
+
description: Review and improve application security using the Global Engineering Standards. Use for security audits, authentication and authorization reviews, API security, secret management, dependency security, secure application development, and verification of security fixes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Engineering Security Standards Check
|
|
7
|
+
|
|
8
|
+
## 1. Purpose
|
|
9
|
+
|
|
10
|
+
Provide a repeatable, evidence-based security review and secure implementation workflow for software engineering projects.
|
|
11
|
+
|
|
12
|
+
This skill supports:
|
|
13
|
+
|
|
14
|
+
- Security audits.
|
|
15
|
+
- Secure application development.
|
|
16
|
+
- Authentication reviews.
|
|
17
|
+
- Authorization reviews.
|
|
18
|
+
- API security.
|
|
19
|
+
- Database access security.
|
|
20
|
+
- Multi-tenant isolation.
|
|
21
|
+
- Secret management.
|
|
22
|
+
- Dependency security.
|
|
23
|
+
- AI application security.
|
|
24
|
+
- Cloud and infrastructure security.
|
|
25
|
+
- Secure deployment preparation.
|
|
26
|
+
- Security regression testing.
|
|
27
|
+
|
|
28
|
+
The objective is to identify meaningful risks, preserve existing protections, and recommend or implement appropriate mitigations within authorized boundaries.
|
|
29
|
+
|
|
30
|
+
Never claim that a system is completely secure.
|
|
31
|
+
|
|
32
|
+
## 2. Global Standards
|
|
33
|
+
|
|
34
|
+
The Global Engineering Standards repository is located at:
|
|
35
|
+
|
|
36
|
+
~/engineering-standards/
|
|
37
|
+
|
|
38
|
+
Primary reference:
|
|
39
|
+
|
|
40
|
+
~/engineering-standards/docs/security.md
|
|
41
|
+
|
|
42
|
+
Additional references when relevant:
|
|
43
|
+
|
|
44
|
+
- docs/governance.md
|
|
45
|
+
- docs/privacy.md
|
|
46
|
+
- docs/architecture.md
|
|
47
|
+
- docs/data.md
|
|
48
|
+
- docs/ai-and-llm.md
|
|
49
|
+
- docs/quality-and-testing.md
|
|
50
|
+
- docs/observability.md
|
|
51
|
+
- docs/mobile-and-web.md
|
|
52
|
+
- docs/platforms-and-applications.md
|
|
53
|
+
|
|
54
|
+
Resolve relative references against the engineering-standards repository.
|
|
55
|
+
|
|
56
|
+
Read relevant documentation before making significant security recommendations.
|
|
57
|
+
|
|
58
|
+
Apply specialized requirements according to actual project context.
|
|
59
|
+
|
|
60
|
+
Do not assume every security control is appropriate for every application.
|
|
61
|
+
|
|
62
|
+
## 3. When to Use This Skill
|
|
63
|
+
|
|
64
|
+
Use when the user requests:
|
|
65
|
+
|
|
66
|
+
- A security audit.
|
|
67
|
+
- A vulnerability review.
|
|
68
|
+
- Authentication improvements.
|
|
69
|
+
- Authorization validation.
|
|
70
|
+
- Protection against common web attacks.
|
|
71
|
+
- Secure API implementation.
|
|
72
|
+
- Secret management review.
|
|
73
|
+
- Multi-tenant isolation analysis.
|
|
74
|
+
- Secure AI agent design.
|
|
75
|
+
- Cloud security review.
|
|
76
|
+
- Security verification before release.
|
|
77
|
+
- Assessment of security-sensitive changes.
|
|
78
|
+
|
|
79
|
+
Also use during Autonomous Build Mode when implementing significant security-sensitive functionality.
|
|
80
|
+
|
|
81
|
+
Do not perform intrusive tests merely because this skill is available.
|
|
82
|
+
|
|
83
|
+
## 4. Operating Modes
|
|
84
|
+
|
|
85
|
+
Support:
|
|
86
|
+
|
|
87
|
+
- Supervised Mode.
|
|
88
|
+
- Autonomous Build Mode.
|
|
89
|
+
|
|
90
|
+
Supervised Mode is the default unless the user explicitly authorizes autonomous end-to-end development.
|
|
91
|
+
|
|
92
|
+
Follow docs/governance.md.
|
|
93
|
+
|
|
94
|
+
The operating mode affects implementation authority, not required security quality.
|
|
95
|
+
|
|
96
|
+
Security safeguards remain applicable in both modes.
|
|
97
|
+
|
|
98
|
+
## 5. Supervised Mode
|
|
99
|
+
|
|
100
|
+
For an existing application under Supervised Mode:
|
|
101
|
+
|
|
102
|
+
1. Identify authorized scope.
|
|
103
|
+
2. Inspect relevant project files.
|
|
104
|
+
3. Determine architecture and trust boundaries.
|
|
105
|
+
4. Review existing security controls.
|
|
106
|
+
5. Collect evidence.
|
|
107
|
+
6. Classify confirmed issues and hypotheses.
|
|
108
|
+
7. Assess severity and impact.
|
|
109
|
+
8. Recommend proportionate corrections.
|
|
110
|
+
9. Document implementation risks.
|
|
111
|
+
10. Obtain appropriate approval before significant changes.
|
|
112
|
+
|
|
113
|
+
A default security audit is read-only.
|
|
114
|
+
|
|
115
|
+
Do not silently modify production systems.
|
|
116
|
+
|
|
117
|
+
## 6. Autonomous Build Mode
|
|
118
|
+
|
|
119
|
+
When explicitly authorized for end-to-end development:
|
|
120
|
+
|
|
121
|
+
1. Identify security requirements.
|
|
122
|
+
2. Plan security controls.
|
|
123
|
+
3. Apply secure architecture patterns.
|
|
124
|
+
4. Implement authentication and authorization correctly.
|
|
125
|
+
5. Protect data and credentials.
|
|
126
|
+
6. Add relevant security tests.
|
|
127
|
+
7. Run permitted validation.
|
|
128
|
+
8. Investigate failures.
|
|
129
|
+
9. Correct identified security defects.
|
|
130
|
+
10. Repeat checks where appropriate.
|
|
131
|
+
11. Continue independent authorized development.
|
|
132
|
+
12. Report unresolved security concerns.
|
|
133
|
+
|
|
134
|
+
Do not request approval for every ordinary local security correction within the approved implementation scope.
|
|
135
|
+
|
|
136
|
+
Do not weaken controls to accelerate development.
|
|
137
|
+
|
|
138
|
+
Protected operations still require appropriate authorization.
|
|
139
|
+
|
|
140
|
+
## 7. Authorization and Safety Boundaries
|
|
141
|
+
|
|
142
|
+
Before taking action, identify:
|
|
143
|
+
|
|
144
|
+
- Authorized repository.
|
|
145
|
+
- Authorized environment.
|
|
146
|
+
- Permitted tools.
|
|
147
|
+
- Permitted test methods.
|
|
148
|
+
- Protected resources.
|
|
149
|
+
- Sensitive data.
|
|
150
|
+
- Relevant approval requirements.
|
|
151
|
+
|
|
152
|
+
Do not assume repository access means authorization to attack or modify deployed services.
|
|
153
|
+
|
|
154
|
+
Do not bypass sandbox, network or platform restrictions.
|
|
155
|
+
|
|
156
|
+
Never use this skill to justify unauthorized access.
|
|
157
|
+
|
|
158
|
+
## 8. Initial Project Reconnaissance
|
|
159
|
+
|
|
160
|
+
Inspect relevant available information:
|
|
161
|
+
|
|
162
|
+
- Project structure.
|
|
163
|
+
- Languages.
|
|
164
|
+
- Frameworks.
|
|
165
|
+
- Dependency manifests.
|
|
166
|
+
- Configuration files.
|
|
167
|
+
- Authentication mechanisms.
|
|
168
|
+
- Authorization mechanisms.
|
|
169
|
+
- API routes.
|
|
170
|
+
- Database access patterns.
|
|
171
|
+
- External integrations.
|
|
172
|
+
- Deployment configuration.
|
|
173
|
+
- Tests.
|
|
174
|
+
- Documentation.
|
|
175
|
+
|
|
176
|
+
Use read-only methods during default audits.
|
|
177
|
+
|
|
178
|
+
Avoid opening, copying or displaying secret values unnecessarily.
|
|
179
|
+
|
|
180
|
+
Do not assume a technology from another project is present.
|
|
181
|
+
|
|
182
|
+
## 9. Security Scope Definition
|
|
183
|
+
|
|
184
|
+
Identify which areas are relevant.
|
|
185
|
+
|
|
186
|
+
Possible categories:
|
|
187
|
+
|
|
188
|
+
- Identity.
|
|
189
|
+
- Authentication.
|
|
190
|
+
- Authorization.
|
|
191
|
+
- Session management.
|
|
192
|
+
- API protection.
|
|
193
|
+
- Input handling.
|
|
194
|
+
- Data isolation.
|
|
195
|
+
- Cryptography.
|
|
196
|
+
- Secret management.
|
|
197
|
+
- File uploads.
|
|
198
|
+
- External integrations.
|
|
199
|
+
- AI systems.
|
|
200
|
+
- Dependencies.
|
|
201
|
+
- Cloud infrastructure.
|
|
202
|
+
- Mobile security.
|
|
203
|
+
- Desktop security.
|
|
204
|
+
- Game security.
|
|
205
|
+
- Logging.
|
|
206
|
+
- Deployment.
|
|
207
|
+
|
|
208
|
+
Document exclusions and access limitations.
|
|
209
|
+
|
|
210
|
+
## 10. Threat Modeling
|
|
211
|
+
|
|
212
|
+
Assess relevant:
|
|
213
|
+
|
|
214
|
+
- Protected assets.
|
|
215
|
+
- Trust boundaries.
|
|
216
|
+
- Attack surfaces.
|
|
217
|
+
- User roles.
|
|
218
|
+
- Privileged operations.
|
|
219
|
+
- External data flows.
|
|
220
|
+
- Sensitive integrations.
|
|
221
|
+
- Threat actors.
|
|
222
|
+
- Potential abuse cases.
|
|
223
|
+
|
|
224
|
+
Use proportionate threat modeling.
|
|
225
|
+
|
|
226
|
+
Do not fabricate threats without a plausible technical path.
|
|
227
|
+
|
|
228
|
+
Prioritize threats by credible impact and likelihood.
|
|
229
|
+
|
|
230
|
+
## 11. Authentication Review
|
|
231
|
+
|
|
232
|
+
Evaluate:
|
|
233
|
+
|
|
234
|
+
- Authentication provider.
|
|
235
|
+
- Credential handling.
|
|
236
|
+
- Password storage.
|
|
237
|
+
- Session creation.
|
|
238
|
+
- Session expiration.
|
|
239
|
+
- Token validation.
|
|
240
|
+
- Token revocation.
|
|
241
|
+
- Account recovery.
|
|
242
|
+
- Multi-factor authentication where relevant.
|
|
243
|
+
- Brute-force protections.
|
|
244
|
+
- Error information leakage.
|
|
245
|
+
|
|
246
|
+
Ensure protected operations validate authenticated identity at trusted boundaries.
|
|
247
|
+
|
|
248
|
+
Do not rely on client-side authentication state as proof of identity.
|
|
249
|
+
|
|
250
|
+
## 12. Authorization Review
|
|
251
|
+
|
|
252
|
+
Review server-side authorization.
|
|
253
|
+
|
|
254
|
+
Check:
|
|
255
|
+
|
|
256
|
+
- Role permissions.
|
|
257
|
+
- Resource ownership.
|
|
258
|
+
- Tenant boundaries.
|
|
259
|
+
- Privileged endpoints.
|
|
260
|
+
- Object-level access.
|
|
261
|
+
- Function-level access.
|
|
262
|
+
- Background jobs.
|
|
263
|
+
- Administrative operations.
|
|
264
|
+
- File access.
|
|
265
|
+
- Database policies.
|
|
266
|
+
|
|
267
|
+
Authentication does not replace authorization.
|
|
268
|
+
|
|
269
|
+
Never trust a client-provided role or owner identifier without appropriate verification.
|
|
270
|
+
|
|
271
|
+
Test unauthorized access paths using safe and authorized methods.
|
|
272
|
+
|
|
273
|
+
## 13. Multi-Tenant Security
|
|
274
|
+
|
|
275
|
+
For multi-tenant systems, assess:
|
|
276
|
+
|
|
277
|
+
- Tenant identity.
|
|
278
|
+
- Server-side tenant scoping.
|
|
279
|
+
- Row-level restrictions.
|
|
280
|
+
- Tenant-aware cache keys.
|
|
281
|
+
- Storage object permissions.
|
|
282
|
+
- Background jobs.
|
|
283
|
+
- Analytics isolation.
|
|
284
|
+
- Search results.
|
|
285
|
+
- RAG retrieval filtering.
|
|
286
|
+
- Administrative exceptions.
|
|
287
|
+
|
|
288
|
+
Test cross-tenant isolation where appropriate and authorized.
|
|
289
|
+
|
|
290
|
+
Do not access another real customer's data to demonstrate a vulnerability.
|
|
291
|
+
|
|
292
|
+
Use isolated test fixtures when possible.
|
|
293
|
+
|
|
294
|
+
## 14. API Security
|
|
295
|
+
|
|
296
|
+
Review:
|
|
297
|
+
|
|
298
|
+
- Endpoint authentication.
|
|
299
|
+
- Resource authorization.
|
|
300
|
+
- Input validation.
|
|
301
|
+
- Rate limiting.
|
|
302
|
+
- Pagination limits.
|
|
303
|
+
- Request size limits.
|
|
304
|
+
- Error handling.
|
|
305
|
+
- CORS configuration.
|
|
306
|
+
- Replay protection where relevant.
|
|
307
|
+
- Webhook authentication.
|
|
308
|
+
- Idempotency for state-changing operations.
|
|
309
|
+
|
|
310
|
+
Do not assume an endpoint is safe merely because it is undocumented.
|
|
311
|
+
|
|
312
|
+
## 15. Input Validation
|
|
313
|
+
|
|
314
|
+
Treat external input as untrusted.
|
|
315
|
+
|
|
316
|
+
Evaluate:
|
|
317
|
+
|
|
318
|
+
- Type validation.
|
|
319
|
+
- Length limits.
|
|
320
|
+
- Allowed values.
|
|
321
|
+
- Structured payload validation.
|
|
322
|
+
- File validation.
|
|
323
|
+
- Numeric bounds.
|
|
324
|
+
- Encoding.
|
|
325
|
+
- Context-specific output handling.
|
|
326
|
+
|
|
327
|
+
Validate at trusted boundaries.
|
|
328
|
+
|
|
329
|
+
Do not rely exclusively on frontend validation.
|
|
330
|
+
|
|
331
|
+
Avoid generic sanitization approaches that destroy valid data.
|
|
332
|
+
|
|
333
|
+
## 16. Injection Risks
|
|
334
|
+
|
|
335
|
+
Evaluate relevant injection categories:
|
|
336
|
+
|
|
337
|
+
- SQL injection.
|
|
338
|
+
- NoSQL injection.
|
|
339
|
+
- Command injection.
|
|
340
|
+
- Template injection.
|
|
341
|
+
- Cross-site scripting.
|
|
342
|
+
- Unsafe HTML rendering.
|
|
343
|
+
- Path traversal.
|
|
344
|
+
- Unsafe deserialization.
|
|
345
|
+
- LDAP or other query injection where applicable.
|
|
346
|
+
|
|
347
|
+
Prefer parameterized queries and safe framework APIs.
|
|
348
|
+
|
|
349
|
+
Do not concatenate untrusted data into executable commands or queries.
|
|
350
|
+
|
|
351
|
+
Use contextual encoding where appropriate.
|
|
352
|
+
|
|
353
|
+
Do not conduct exploitation against unauthorized systems.
|
|
354
|
+
|
|
355
|
+
## 17. Cross-Site Request Forgery
|
|
356
|
+
|
|
357
|
+
For browser applications using cookie-based authentication, evaluate CSRF protections.
|
|
358
|
+
|
|
359
|
+
Consider:
|
|
360
|
+
|
|
361
|
+
- SameSite cookies.
|
|
362
|
+
- Anti-CSRF tokens.
|
|
363
|
+
- Origin validation.
|
|
364
|
+
- Safe HTTP method semantics.
|
|
365
|
+
- Framework-specific protections.
|
|
366
|
+
|
|
367
|
+
Do not assume CORS alone prevents CSRF.
|
|
368
|
+
|
|
369
|
+
Apply controls according to the actual authentication architecture.
|
|
370
|
+
|
|
371
|
+
## 18. Session and Token Security
|
|
372
|
+
|
|
373
|
+
Review:
|
|
374
|
+
|
|
375
|
+
- Token lifetime.
|
|
376
|
+
- Secure storage.
|
|
377
|
+
- Cookie attributes.
|
|
378
|
+
- Token audience.
|
|
379
|
+
- Token issuer.
|
|
380
|
+
- Signature validation.
|
|
381
|
+
- Key rotation.
|
|
382
|
+
- Refresh token handling.
|
|
383
|
+
- Logout behavior.
|
|
384
|
+
- Revocation where applicable.
|
|
385
|
+
|
|
386
|
+
Avoid storing sensitive session tokens in insecure locations.
|
|
387
|
+
|
|
388
|
+
Never log active credentials.
|
|
389
|
+
|
|
390
|
+
## 19. Cryptography
|
|
391
|
+
|
|
392
|
+
Use established cryptographic libraries and protocols.
|
|
393
|
+
|
|
394
|
+
Avoid inventing custom cryptographic algorithms.
|
|
395
|
+
|
|
396
|
+
Evaluate:
|
|
397
|
+
|
|
398
|
+
- Encryption in transit.
|
|
399
|
+
- Encryption at rest.
|
|
400
|
+
- Key management.
|
|
401
|
+
- Password hashing.
|
|
402
|
+
- Random number generation.
|
|
403
|
+
- Certificate validation.
|
|
404
|
+
- Algorithm lifecycle.
|
|
405
|
+
- Rotation procedures.
|
|
406
|
+
|
|
407
|
+
Choose cryptographic controls appropriate to the threat model and platform.
|
|
408
|
+
|
|
409
|
+
Do not claim encryption solves authorization or application logic vulnerabilities.
|
|
410
|
+
|
|
411
|
+
## 20. Secrets Management
|
|
412
|
+
|
|
413
|
+
Protect:
|
|
414
|
+
|
|
415
|
+
- API keys.
|
|
416
|
+
- Database credentials.
|
|
417
|
+
- Cloud access keys.
|
|
418
|
+
- OAuth secrets.
|
|
419
|
+
- Signing keys.
|
|
420
|
+
- Private certificates.
|
|
421
|
+
- Production tokens.
|
|
422
|
+
|
|
423
|
+
Review:
|
|
424
|
+
|
|
425
|
+
- Environment variable handling.
|
|
426
|
+
- Secret managers.
|
|
427
|
+
- Access scopes.
|
|
428
|
+
- Rotation procedures.
|
|
429
|
+
- Build and deployment exposure.
|
|
430
|
+
- Logging.
|
|
431
|
+
- Source control history.
|
|
432
|
+
|
|
433
|
+
Do not print secrets in reports.
|
|
434
|
+
|
|
435
|
+
Do not commit credentials.
|
|
436
|
+
|
|
437
|
+
If secrets are discovered, avoid reproducing their values and recommend appropriate containment.
|
|
438
|
+
|
|
439
|
+
## 21. Database Security
|
|
440
|
+
|
|
441
|
+
Assess:
|
|
442
|
+
|
|
443
|
+
- Database permissions.
|
|
444
|
+
- Query parameterization.
|
|
445
|
+
- Tenant isolation.
|
|
446
|
+
- Row-level security where appropriate.
|
|
447
|
+
- Privileged database clients.
|
|
448
|
+
- Data access paths.
|
|
449
|
+
- Migration permissions.
|
|
450
|
+
- Backup access.
|
|
451
|
+
- Restore access.
|
|
452
|
+
- Data export restrictions.
|
|
453
|
+
|
|
454
|
+
Do not connect to or modify production databases without authorization.
|
|
455
|
+
|
|
456
|
+
Consult docs/data.md.
|
|
457
|
+
|
|
458
|
+
## 22. File Upload Security
|
|
459
|
+
|
|
460
|
+
Evaluate:
|
|
461
|
+
|
|
462
|
+
- File type validation.
|
|
463
|
+
- File size limits.
|
|
464
|
+
- Storage isolation.
|
|
465
|
+
- Filename handling.
|
|
466
|
+
- Access authorization.
|
|
467
|
+
- Malware scanning when justified.
|
|
468
|
+
- Content processing.
|
|
469
|
+
- Download headers.
|
|
470
|
+
- Public versus private storage.
|
|
471
|
+
|
|
472
|
+
Do not trust file extensions alone.
|
|
473
|
+
|
|
474
|
+
Avoid processing untrusted uploaded content with privileged permissions.
|
|
475
|
+
|
|
476
|
+
## 23. External Integrations
|
|
477
|
+
|
|
478
|
+
Review:
|
|
479
|
+
|
|
480
|
+
- API authentication.
|
|
481
|
+
- Webhook signature verification.
|
|
482
|
+
- Credential scope.
|
|
483
|
+
- Retry behavior.
|
|
484
|
+
- Timeout handling.
|
|
485
|
+
- Error reporting.
|
|
486
|
+
- Sensitive data transfer.
|
|
487
|
+
- Third-party dependency risk.
|
|
488
|
+
|
|
489
|
+
Do not transmit private information to new third parties without appropriate authorization.
|
|
490
|
+
|
|
491
|
+
Avoid introducing billable integrations silently.
|
|
492
|
+
|
|
493
|
+
## 24. AI and LLM Security
|
|
494
|
+
|
|
495
|
+
When relevant, evaluate:
|
|
496
|
+
|
|
497
|
+
- Prompt injection.
|
|
498
|
+
- Untrusted retrieved documents.
|
|
499
|
+
- Tool authorization.
|
|
500
|
+
- Agent permissions.
|
|
501
|
+
- Sensitive data exposure.
|
|
502
|
+
- Cross-tenant retrieval.
|
|
503
|
+
- Model output validation.
|
|
504
|
+
- External content handling.
|
|
505
|
+
- Autonomous actions.
|
|
506
|
+
- Human approval requirements.
|
|
507
|
+
- Inference cost limits.
|
|
508
|
+
- Audit trails.
|
|
509
|
+
|
|
510
|
+
Never treat generated model output as trusted authorization.
|
|
511
|
+
|
|
512
|
+
Never allow retrieved content to override trusted instructions.
|
|
513
|
+
|
|
514
|
+
Consult docs/ai-and-llm.md.
|
|
515
|
+
|
|
516
|
+
## 25. Agent Tool Security
|
|
517
|
+
|
|
518
|
+
For agentic applications:
|
|
519
|
+
|
|
520
|
+
- Define allowed tools.
|
|
521
|
+
- Restrict tool scope.
|
|
522
|
+
- Separate read and write permissions.
|
|
523
|
+
- Validate tool arguments.
|
|
524
|
+
- Apply rate and execution limits.
|
|
525
|
+
- Require approval for high-impact actions.
|
|
526
|
+
- Maintain appropriate logs.
|
|
527
|
+
- Protect credentials.
|
|
528
|
+
- Prevent cross-tenant access.
|
|
529
|
+
- Validate results before consequential actions.
|
|
530
|
+
|
|
531
|
+
Do not delegate privileged operations to bypass restrictions.
|
|
532
|
+
|
|
533
|
+
## 26. Cloud Security
|
|
534
|
+
|
|
535
|
+
Review relevant:
|
|
536
|
+
|
|
537
|
+
- Identity and access management.
|
|
538
|
+
- Least privilege.
|
|
539
|
+
- Network boundaries.
|
|
540
|
+
- Public exposure.
|
|
541
|
+
- Storage permissions.
|
|
542
|
+
- Encryption.
|
|
543
|
+
- Secret management.
|
|
544
|
+
- Audit logging.
|
|
545
|
+
- Backup access.
|
|
546
|
+
- Infrastructure configuration.
|
|
547
|
+
- Deployment identities.
|
|
548
|
+
|
|
549
|
+
Assess the actual cloud provider used.
|
|
550
|
+
|
|
551
|
+
Do not assume AWS, Azure, GCP or another provider is mandatory.
|
|
552
|
+
|
|
553
|
+
Do not make production cloud changes during a default audit.
|
|
554
|
+
|
|
555
|
+
## 27. Kubernetes Security
|
|
556
|
+
|
|
557
|
+
When Kubernetes is actually used, evaluate:
|
|
558
|
+
|
|
559
|
+
- Service account permissions.
|
|
560
|
+
- Namespace isolation.
|
|
561
|
+
- RBAC.
|
|
562
|
+
- Network policies.
|
|
563
|
+
- Container images.
|
|
564
|
+
- Pod security settings.
|
|
565
|
+
- Secret handling.
|
|
566
|
+
- Ingress exposure.
|
|
567
|
+
- Workload identity.
|
|
568
|
+
- Resource limits.
|
|
569
|
+
- Auditability.
|
|
570
|
+
|
|
571
|
+
Do not recommend Kubernetes solely as a security improvement.
|
|
572
|
+
|
|
573
|
+
Do not modify live clusters without authorization.
|
|
574
|
+
|
|
575
|
+
## 28. Mobile Security
|
|
576
|
+
|
|
577
|
+
For iOS and Android, evaluate:
|
|
578
|
+
|
|
579
|
+
- Secure local storage.
|
|
580
|
+
- Platform permission handling.
|
|
581
|
+
- Authentication tokens.
|
|
582
|
+
- Network security.
|
|
583
|
+
- Sensitive data exposure.
|
|
584
|
+
- Deep links.
|
|
585
|
+
- WebViews.
|
|
586
|
+
- App signing.
|
|
587
|
+
- Dependency integrity.
|
|
588
|
+
- Device-specific threats.
|
|
589
|
+
|
|
590
|
+
Apply controls appropriate to each platform.
|
|
591
|
+
|
|
592
|
+
Consult docs/mobile-and-web.md.
|
|
593
|
+
|
|
594
|
+
## 29. Desktop and Native Security
|
|
595
|
+
|
|
596
|
+
For desktop and native software, evaluate:
|
|
597
|
+
|
|
598
|
+
- Local filesystem access.
|
|
599
|
+
- Sandboxing.
|
|
600
|
+
- OS permissions.
|
|
601
|
+
- Update integrity.
|
|
602
|
+
- Package signing.
|
|
603
|
+
- Native dependencies.
|
|
604
|
+
- Privilege boundaries.
|
|
605
|
+
- Unsafe native interfaces.
|
|
606
|
+
- Local credential storage.
|
|
607
|
+
|
|
608
|
+
Consult docs/platforms-and-applications.md.
|
|
609
|
+
|
|
610
|
+
## 30. Game Security
|
|
611
|
+
|
|
612
|
+
For games, evaluate relevant:
|
|
613
|
+
|
|
614
|
+
- Server-authoritative logic.
|
|
615
|
+
- Multiplayer trust boundaries.
|
|
616
|
+
- Anti-cheat considerations.
|
|
617
|
+
- In-game economy integrity.
|
|
618
|
+
- Save data protection.
|
|
619
|
+
- Asset handling.
|
|
620
|
+
- Player identity.
|
|
621
|
+
- Backend permissions.
|
|
622
|
+
- Network protocol validation.
|
|
623
|
+
|
|
624
|
+
Avoid trusting client-controlled values for sensitive competitive or financial operations.
|
|
625
|
+
|
|
626
|
+
Consult docs/platforms-and-applications.md.
|
|
627
|
+
|
|
628
|
+
## 31. Dependency Security
|
|
629
|
+
|
|
630
|
+
Inspect relevant:
|
|
631
|
+
|
|
632
|
+
- Dependency versions.
|
|
633
|
+
- Known advisories.
|
|
634
|
+
- Lockfiles.
|
|
635
|
+
- Package provenance.
|
|
636
|
+
- Maintenance status.
|
|
637
|
+
- Transitive dependencies.
|
|
638
|
+
- Build scripts.
|
|
639
|
+
- License obligations.
|
|
640
|
+
- Supply chain exposure.
|
|
641
|
+
|
|
642
|
+
Prefer established security advisory sources.
|
|
643
|
+
|
|
644
|
+
Do not automatically upgrade critical dependencies without compatibility assessment.
|
|
645
|
+
|
|
646
|
+
Do not run untrusted package installation scripts during a read-only audit.
|
|
647
|
+
|
|
648
|
+
## 32. Secure Build and CI/CD
|
|
649
|
+
|
|
650
|
+
Review:
|
|
651
|
+
|
|
652
|
+
- Build reproducibility.
|
|
653
|
+
- Secret handling.
|
|
654
|
+
- CI permissions.
|
|
655
|
+
- Branch protection.
|
|
656
|
+
- Artifact integrity.
|
|
657
|
+
- Dependency pinning.
|
|
658
|
+
- Security scans.
|
|
659
|
+
- Deployment approvals.
|
|
660
|
+
- Build provenance.
|
|
661
|
+
- Environment separation.
|
|
662
|
+
|
|
663
|
+
Do not disable existing security checks to make builds pass.
|
|
664
|
+
|
|
665
|
+
## 33. Logging and Sensitive Data
|
|
666
|
+
|
|
667
|
+
Review whether logs expose:
|
|
668
|
+
|
|
669
|
+
- Credentials.
|
|
670
|
+
- Session tokens.
|
|
671
|
+
- Personal data.
|
|
672
|
+
- Private documents.
|
|
673
|
+
- Financial information.
|
|
674
|
+
- Internal authorization details.
|
|
675
|
+
|
|
676
|
+
Use appropriate redaction and retention.
|
|
677
|
+
|
|
678
|
+
Security observability must not introduce unnecessary privacy risks.
|
|
679
|
+
|
|
680
|
+
Consult docs/observability.md.
|
|
681
|
+
|
|
682
|
+
## 34. Error Handling
|
|
683
|
+
|
|
684
|
+
Review:
|
|
685
|
+
|
|
686
|
+
- Exception handling.
|
|
687
|
+
- Public error messages.
|
|
688
|
+
- Sensitive stack traces.
|
|
689
|
+
- Failure logging.
|
|
690
|
+
- Retry behavior.
|
|
691
|
+
- Timeout handling.
|
|
692
|
+
- Partial failure states.
|
|
693
|
+
|
|
694
|
+
Prevent unnecessary information disclosure.
|
|
695
|
+
|
|
696
|
+
Do not hide important failures from operators.
|
|
697
|
+
|
|
698
|
+
## 35. Business Logic Security
|
|
699
|
+
|
|
700
|
+
Assess security-sensitive business rules.
|
|
701
|
+
|
|
702
|
+
Examples:
|
|
703
|
+
|
|
704
|
+
- Payment amount validation.
|
|
705
|
+
- Subscription entitlement checks.
|
|
706
|
+
- Insurance claim authorization.
|
|
707
|
+
- Inventory ownership.
|
|
708
|
+
- Reservation consistency.
|
|
709
|
+
- Account balance changes.
|
|
710
|
+
- Administrative overrides.
|
|
711
|
+
- Game economy transactions.
|
|
712
|
+
|
|
713
|
+
Enforce critical invariants at trusted boundaries.
|
|
714
|
+
|
|
715
|
+
Do not assume a passing UI test proves server-side authorization.
|
|
716
|
+
|
|
717
|
+
## 36. Abuse Prevention
|
|
718
|
+
|
|
719
|
+
Evaluate relevant:
|
|
720
|
+
|
|
721
|
+
- Rate limiting.
|
|
722
|
+
- Account enumeration.
|
|
723
|
+
- Spam controls.
|
|
724
|
+
- Automation abuse.
|
|
725
|
+
- Resource exhaustion.
|
|
726
|
+
- Expensive query protection.
|
|
727
|
+
- File upload abuse.
|
|
728
|
+
- AI inference abuse.
|
|
729
|
+
- Fraud-sensitive workflows.
|
|
730
|
+
|
|
731
|
+
Choose controls based on realistic abuse scenarios.
|
|
732
|
+
|
|
733
|
+
Balance security, usability and operational cost.
|
|
734
|
+
|
|
735
|
+
## 37. Security Testing Strategy
|
|
736
|
+
|
|
737
|
+
Select tests appropriate to the technology and authorized scope.
|
|
738
|
+
|
|
739
|
+
Possible approaches:
|
|
740
|
+
|
|
741
|
+
- Static analysis.
|
|
742
|
+
- Dependency vulnerability checks.
|
|
743
|
+
- Unit tests.
|
|
744
|
+
- Authorization integration tests.
|
|
745
|
+
- Input validation tests.
|
|
746
|
+
- Security regression tests.
|
|
747
|
+
- Configuration reviews.
|
|
748
|
+
- Safe dynamic testing.
|
|
749
|
+
- Threat-model-based test cases.
|
|
750
|
+
|
|
751
|
+
Do not perform live penetration testing or aggressive scans without explicit authorization.
|
|
752
|
+
|
|
753
|
+
Do not claim a test passed unless it was executed.
|
|
754
|
+
|
|
755
|
+
## 38. Safe Test Execution
|
|
756
|
+
|
|
757
|
+
Before running security tools:
|
|
758
|
+
|
|
759
|
+
1. Confirm authorization.
|
|
760
|
+
2. Identify target environment.
|
|
761
|
+
3. Review possible side effects.
|
|
762
|
+
4. Avoid production disruption.
|
|
763
|
+
5. Protect sensitive data.
|
|
764
|
+
6. Use bounded execution.
|
|
765
|
+
7. Record the test method.
|
|
766
|
+
8. Record actual results.
|
|
767
|
+
|
|
768
|
+
Prefer local or isolated test environments.
|
|
769
|
+
|
|
770
|
+
Avoid uncontrolled fuzzing, load generation or destructive payloads against live services.
|
|
771
|
+
|
|
772
|
+
## 39. Finding Evidence
|
|
773
|
+
|
|
774
|
+
For every material issue, document:
|
|
775
|
+
|
|
776
|
+
- Affected file or component.
|
|
777
|
+
- Relevant code or configuration.
|
|
778
|
+
- Preconditions.
|
|
779
|
+
- Observed behavior.
|
|
780
|
+
- Expected secure behavior.
|
|
781
|
+
- Supporting evidence.
|
|
782
|
+
- Verification method.
|
|
783
|
+
- Remaining uncertainty.
|
|
784
|
+
|
|
785
|
+
Do not fabricate proof.
|
|
786
|
+
|
|
787
|
+
Avoid exposing exploit-ready secrets or customer data.
|
|
788
|
+
|
|
789
|
+
## 40. Finding Status
|
|
790
|
+
|
|
791
|
+
Use appropriate status labels:
|
|
792
|
+
|
|
793
|
+
- Confirmed.
|
|
794
|
+
- Strongly supported.
|
|
795
|
+
- Hypothesis.
|
|
796
|
+
- Not assessed.
|
|
797
|
+
- Resolved.
|
|
798
|
+
- Mitigated.
|
|
799
|
+
- Accepted risk.
|
|
800
|
+
|
|
801
|
+
Do not call an issue resolved merely because a code change was proposed.
|
|
802
|
+
|
|
803
|
+
Revalidation is required before reporting successful remediation.
|
|
804
|
+
|
|
805
|
+
## 41. Security Severity
|
|
806
|
+
|
|
807
|
+
Possible severity classifications:
|
|
808
|
+
|
|
809
|
+
- Critical.
|
|
810
|
+
- High.
|
|
811
|
+
- Medium.
|
|
812
|
+
- Low.
|
|
813
|
+
- Informational.
|
|
814
|
+
|
|
815
|
+
Consider:
|
|
816
|
+
|
|
817
|
+
- Exploitability.
|
|
818
|
+
- Required privileges.
|
|
819
|
+
- User interaction.
|
|
820
|
+
- Data sensitivity.
|
|
821
|
+
- Exposure.
|
|
822
|
+
- Potential impact.
|
|
823
|
+
- Existing mitigations.
|
|
824
|
+
- Reachability.
|
|
825
|
+
|
|
826
|
+
Avoid severity inflation.
|
|
827
|
+
|
|
828
|
+
Do not treat every outdated dependency as an exploitable critical vulnerability.
|
|
829
|
+
|
|
830
|
+
## 42. Confidence Classification
|
|
831
|
+
|
|
832
|
+
Record confidence separately from severity.
|
|
833
|
+
|
|
834
|
+
High confidence:
|
|
835
|
+
|
|
836
|
+
Strong evidence supports the finding.
|
|
837
|
+
|
|
838
|
+
Medium confidence:
|
|
839
|
+
|
|
840
|
+
Evidence is meaningful but incomplete.
|
|
841
|
+
|
|
842
|
+
Low confidence:
|
|
843
|
+
|
|
844
|
+
The issue remains hypothetical or insufficiently verified.
|
|
845
|
+
|
|
846
|
+
A high-impact hypothesis is not the same as a confirmed critical vulnerability.
|
|
847
|
+
|
|
848
|
+
## 43. Security Finding Format
|
|
849
|
+
|
|
850
|
+
Use the following structure for significant findings.
|
|
851
|
+
|
|
852
|
+
Finding ID:
|
|
853
|
+
|
|
854
|
+
[FINDING_ID]
|
|
855
|
+
|
|
856
|
+
Title:
|
|
857
|
+
|
|
858
|
+
[FINDING_TITLE]
|
|
859
|
+
|
|
860
|
+
Category:
|
|
861
|
+
|
|
862
|
+
[CATEGORY]
|
|
863
|
+
|
|
864
|
+
Severity:
|
|
865
|
+
|
|
866
|
+
[SEVERITY]
|
|
867
|
+
|
|
868
|
+
Confidence:
|
|
869
|
+
|
|
870
|
+
[CONFIDENCE]
|
|
871
|
+
|
|
872
|
+
Verification status:
|
|
873
|
+
|
|
874
|
+
[STATUS]
|
|
875
|
+
|
|
876
|
+
Affected component:
|
|
877
|
+
|
|
878
|
+
[COMPONENT]
|
|
879
|
+
|
|
880
|
+
Evidence:
|
|
881
|
+
|
|
882
|
+
[EVIDENCE]
|
|
883
|
+
|
|
884
|
+
Impact:
|
|
885
|
+
|
|
886
|
+
[IMPACT]
|
|
887
|
+
|
|
888
|
+
Recommended correction:
|
|
889
|
+
|
|
890
|
+
[REMEDIATION]
|
|
891
|
+
|
|
892
|
+
Compatibility considerations:
|
|
893
|
+
|
|
894
|
+
[COMPATIBILITY]
|
|
895
|
+
|
|
896
|
+
Testing requirements:
|
|
897
|
+
|
|
898
|
+
[TESTS]
|
|
899
|
+
|
|
900
|
+
Approval requirements:
|
|
901
|
+
|
|
902
|
+
[APPROVAL]
|
|
903
|
+
|
|
904
|
+
Do not use invented evidence or test results.
|
|
905
|
+
|
|
906
|
+
## 44. Remediation Planning
|
|
907
|
+
|
|
908
|
+
For significant security issues:
|
|
909
|
+
|
|
910
|
+
1. Identify the root cause.
|
|
911
|
+
2. Assess affected components.
|
|
912
|
+
3. Evaluate compatibility.
|
|
913
|
+
4. Select the minimal effective correction.
|
|
914
|
+
5. Identify data and operational risks.
|
|
915
|
+
6. Define tests.
|
|
916
|
+
7. Define rollback or recovery where relevant.
|
|
917
|
+
8. Obtain authorization when required.
|
|
918
|
+
9. Implement the correction.
|
|
919
|
+
10. Revalidate the affected behavior.
|
|
920
|
+
|
|
921
|
+
Do not rewrite unrelated components.
|
|
922
|
+
|
|
923
|
+
## 45. Remediation Priorities
|
|
924
|
+
|
|
925
|
+
Prioritize based on:
|
|
926
|
+
|
|
927
|
+
- Confirmed risk.
|
|
928
|
+
- Exploitability.
|
|
929
|
+
- Exposure.
|
|
930
|
+
- Impact.
|
|
931
|
+
- Affected users.
|
|
932
|
+
- Data sensitivity.
|
|
933
|
+
- Remediation effort.
|
|
934
|
+
- Operational constraints.
|
|
935
|
+
|
|
936
|
+
Address material confirmed threats before cosmetic improvements.
|
|
937
|
+
|
|
938
|
+
Do not ignore legitimate low-severity issues indefinitely.
|
|
939
|
+
|
|
940
|
+
## 46. Autonomous Security Corrections
|
|
941
|
+
|
|
942
|
+
In Autonomous Build Mode, authorized local corrections may proceed without repeated approval.
|
|
943
|
+
|
|
944
|
+
Examples:
|
|
945
|
+
|
|
946
|
+
- Adding missing input validation.
|
|
947
|
+
- Improving safe error handling.
|
|
948
|
+
- Correcting authorization checks within approved scope.
|
|
949
|
+
- Adding security regression tests.
|
|
950
|
+
- Fixing insecure local configuration.
|
|
951
|
+
- Replacing a vulnerable dependency when compatibility and scope permit.
|
|
952
|
+
|
|
953
|
+
Do not interpret this permission as authority for destructive production operations or privileged security-policy changes.
|
|
954
|
+
|
|
955
|
+
Escalate when corrections exceed approved boundaries.
|
|
956
|
+
|
|
957
|
+
## 47. Protected Security Operations
|
|
958
|
+
|
|
959
|
+
Require specific approval for:
|
|
960
|
+
|
|
961
|
+
- Production credential rotation.
|
|
962
|
+
- Production access policy changes.
|
|
963
|
+
- Disabling live accounts.
|
|
964
|
+
- Deleting production data.
|
|
965
|
+
- Changing firewall rules in production.
|
|
966
|
+
- Modifying cloud IAM roles.
|
|
967
|
+
- Disabling live security mechanisms.
|
|
968
|
+
- Deploying security changes to production.
|
|
969
|
+
- Intrusive testing of live systems.
|
|
970
|
+
- Operations outside approved scope.
|
|
971
|
+
|
|
972
|
+
Follow docs/governance.md.
|
|
973
|
+
|
|
974
|
+
## 48. Security and Financial Boundaries
|
|
975
|
+
|
|
976
|
+
Security tools and infrastructure may introduce costs.
|
|
977
|
+
|
|
978
|
+
Evaluate:
|
|
979
|
+
|
|
980
|
+
- Paid scanners.
|
|
981
|
+
- Managed security services.
|
|
982
|
+
- Log ingestion.
|
|
983
|
+
- Cloud security products.
|
|
984
|
+
- External testing services.
|
|
985
|
+
- New infrastructure.
|
|
986
|
+
|
|
987
|
+
Do not initiate paid commitments automatically.
|
|
988
|
+
|
|
989
|
+
Use approved free or existing tools when suitable.
|
|
990
|
+
|
|
991
|
+
Consult docs/cost-engineering.md.
|
|
992
|
+
|
|
993
|
+
## 49. Privacy During Security Reviews
|
|
994
|
+
|
|
995
|
+
Security reviews must protect personal information.
|
|
996
|
+
|
|
997
|
+
Avoid:
|
|
998
|
+
|
|
999
|
+
- Unnecessary personal data extraction.
|
|
1000
|
+
- Downloading production databases.
|
|
1001
|
+
- Copying private customer documents.
|
|
1002
|
+
- Sharing identifiable records with new services.
|
|
1003
|
+
- Including sensitive data in findings.
|
|
1004
|
+
|
|
1005
|
+
Use safe test fixtures, redacted evidence and approved processing paths.
|
|
1006
|
+
|
|
1007
|
+
Consult docs/privacy.md.
|
|
1008
|
+
|
|
1009
|
+
## 50. Security Documentation
|
|
1010
|
+
|
|
1011
|
+
For significant security work, document:
|
|
1012
|
+
|
|
1013
|
+
- Scope.
|
|
1014
|
+
- Methods.
|
|
1015
|
+
- Findings.
|
|
1016
|
+
- Evidence.
|
|
1017
|
+
- Risks.
|
|
1018
|
+
- Corrections.
|
|
1019
|
+
- Tests.
|
|
1020
|
+
- Unresolved issues.
|
|
1021
|
+
- Approvals.
|
|
1022
|
+
- Remaining actions.
|
|
1023
|
+
|
|
1024
|
+
Use the audit report template where appropriate:
|
|
1025
|
+
|
|
1026
|
+
~/engineering-standards/templates/AUDIT_REPORT.md
|
|
1027
|
+
|
|
1028
|
+
Document standards exceptions using:
|
|
1029
|
+
|
|
1030
|
+
~/engineering-standards/templates/EXCEPTIONS.md
|
|
1031
|
+
|
|
1032
|
+
Do not treat a proposed exception as approved.
|
|
1033
|
+
|
|
1034
|
+
## 51. Verification After Corrections
|
|
1035
|
+
|
|
1036
|
+
After authorized changes:
|
|
1037
|
+
|
|
1038
|
+
1. Review changed files.
|
|
1039
|
+
2. Run relevant tests.
|
|
1040
|
+
3. Verify the original issue is addressed.
|
|
1041
|
+
4. Test affected authorization boundaries.
|
|
1042
|
+
5. Check for regressions.
|
|
1043
|
+
6. Review new dependencies.
|
|
1044
|
+
7. Check for accidental secret exposure.
|
|
1045
|
+
8. Document actual results.
|
|
1046
|
+
|
|
1047
|
+
Do not claim verification when tests could not run.
|
|
1048
|
+
|
|
1049
|
+
## 52. Security Definition of Done
|
|
1050
|
+
|
|
1051
|
+
For significant security-sensitive implementation:
|
|
1052
|
+
|
|
1053
|
+
- Requirements understood.
|
|
1054
|
+
- Threats considered.
|
|
1055
|
+
- Authentication appropriate.
|
|
1056
|
+
- Authorization enforced.
|
|
1057
|
+
- Data access restricted.
|
|
1058
|
+
- Inputs validated.
|
|
1059
|
+
- Secrets protected.
|
|
1060
|
+
- Dependencies reviewed.
|
|
1061
|
+
- Relevant tests added.
|
|
1062
|
+
- Tests executed where possible.
|
|
1063
|
+
- Results recorded.
|
|
1064
|
+
- Residual risks documented.
|
|
1065
|
+
- Protected operations authorized.
|
|
1066
|
+
- Human actions identified.
|
|
1067
|
+
|
|
1068
|
+
Security completeness depends on actual project risk and verification evidence.
|
|
1069
|
+
|
|
1070
|
+
## 53. Final Reporting
|
|
1071
|
+
|
|
1072
|
+
At the end of the review or implementation, report:
|
|
1073
|
+
|
|
1074
|
+
1. Scope reviewed.
|
|
1075
|
+
2. Security strengths.
|
|
1076
|
+
3. Confirmed findings.
|
|
1077
|
+
4. Unverified concerns.
|
|
1078
|
+
5. Severity and confidence.
|
|
1079
|
+
6. Corrections implemented.
|
|
1080
|
+
7. Tests performed.
|
|
1081
|
+
8. Tests not performed.
|
|
1082
|
+
9. Remaining risks.
|
|
1083
|
+
10. Required human approval.
|
|
1084
|
+
11. Recommended next actions.
|
|
1085
|
+
|
|
1086
|
+
Separate recommendations from implemented corrections.
|
|
1087
|
+
|
|
1088
|
+
Do not claim all vulnerabilities have been eliminated.
|
|
1089
|
+
|
|
1090
|
+
## 54. Final Security Principles
|
|
1091
|
+
|
|
1092
|
+
Apply Security by Design.
|
|
1093
|
+
Preserve least privilege.
|
|
1094
|
+
Protect authentication and authorization.
|
|
1095
|
+
Enforce resource ownership.
|
|
1096
|
+
Preserve tenant isolation.
|
|
1097
|
+
Validate untrusted inputs.
|
|
1098
|
+
Protect credentials and secrets.
|
|
1099
|
+
Avoid insecure dependencies.
|
|
1100
|
+
Protect sensitive personal information.
|
|
1101
|
+
Treat external content as untrusted.
|
|
1102
|
+
Restrict AI agent tools and permissions.
|
|
1103
|
+
Assess relevant cloud and platform threats.
|
|
1104
|
+
Protect production environments.
|
|
1105
|
+
Avoid unauthorized intrusive testing.
|
|
1106
|
+
Base findings on verifiable evidence.
|
|
1107
|
+
Classify severity and confidence separately.
|
|
1108
|
+
Prefer focused, tested corrections.
|
|
1109
|
+
Preserve human approval for protected operations.
|
|
1110
|
+
Support authorized autonomous development.
|
|
1111
|
+
Never fabricate security verification.
|
|
1112
|
+
Report remaining risks honestly.
|