You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
JSInstallGuard is a small security wrapper around the package manager which intercepts any `preinstall` and `postinstall` scripts.
4
4
5
-
These are checked against an allow list, and if they have not been explicitly allowed then the install script will be blocked.
5
+
These are commonly the point where malicious code is inserted in compromised npm packages. By preventing these scripts running until they have been explicitly trusted, then this helps detect any potential malicious intent before it can do any damage.
6
+
7
+
Package install scripts are checked against an allow list, and if they have not been explicitly allowed then the script will be blocked.
6
8
7
9
It supports both `yarn` and `npm` package managers.
0 commit comments