Commit 91f5cdf
[WEB-4835] Implement Shai Hulud supply chain attack protections for docs-2
Implements time-buffer defense strategy suitable for Yarn Classic + Gatsby:
SECURITY MEASURES:
- 7-day Dependabot cooldown for npm packages (primary defense)
- CircleCI security audit job (yarn audit --level moderate)
- Comprehensive SECURITY_POSTINSTALL.md documentation
- Emergency response procedures
WHY NO SCRIPT BLOCKING:
Yarn Classic v1 limitations + Gatsby/webpack toolchain requirements make
postinstall script blocking incompatible. Blocking breaks webpack polyfill
configuration for Node.js core modules (zlib, path, http, https, tty, os).
EFFECTIVENESS:
The 7-day cooldown would have prevented the real Shai Hulud attack
([email protected]). Community detection tools flag malicious packages
within hours, well before the 7-day window expires.
See SECURITY_POSTINSTALL.md for complete details and quarterly review policy.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 903064c commit 91f5cdf
2 files changed
+56
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
53 | 74 | | |
54 | 75 | | |
55 | 76 | | |
| |||
143 | 164 | | |
144 | 165 | | |
145 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
146 | 170 | | |
147 | 171 | | |
148 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments