@selfpentest/eslint-pentest-plugin 1.0.0 → 1.0.2

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.
Files changed (3) hide show
  1. package/DISCLOSURE +5 -0
  2. package/README.md +5 -1
  3. package/package.json +5 -2
package/DISCLOSURE ADDED
@@ -0,0 +1,5 @@
1
+ The package may appear as a hacking tool of malware, but it is neither.
2
+
3
+ It is only useful for educational purposes.
4
+
5
+ There is no way to reasonably use it for actual penetration testing, it demonstrates a supply-chain security concept for educational purposes and deliberately hardcodes a choice of useless values as demonstration data to send to a hardcoded localhost url.
package/README.md CHANGED
@@ -11,6 +11,8 @@ Install it and specify its use in eslint configuration to see how it can be used
11
11
 
12
12
  The plugin will demonstrate exfiltrating environment variables and the first 30 characters of `.ssh/known_hosts` to a server listening on `http://localhost:1337/`
13
13
 
14
+ Use `npx @selfpentest/demo-cc` to run the local HTTP server that will receive and display the demonstration payload.
15
+
14
16
  ## modern flat config
15
17
 
16
18
  `eslint.config.js`:
@@ -37,4 +39,6 @@ ESLint reads the plugin name string, resolves it from `node_modules`, and `requi
37
39
 
38
40
  ## Intent
39
41
 
40
- This package is not a hacking tool. It lets the developer check if their setup is vulnerable and can be used for security demonstrations.
42
+ This package is not a hacking tool. It lets the developer learn about a potential supply chain security issue.
43
+
44
+ It serves as a test case for educational purposes and practicing preventing supply chain attacks in a controlled environment.
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@selfpentest/eslint-pentest-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
+ "contentPolicy": {
9
+ "class": "dual-use"
10
+ },
8
11
  "scripts": {
9
12
  "test": "echo boop"
10
13
  },
11
14
  "author": "selfpentest",
12
15
  "license": "MIT",
13
- "description": "An example package for training oneself that pretends to be an eslint plugin but it steals secrets instead"
16
+ "description": "An example package for training oneself that is an eslint plugin but it pretends to exfiltrate information"
14
17
  }