-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
20 lines (20 loc) · 1.07 KB
/
Copy pathpackage.json
File metadata and controls
20 lines (20 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "inject-a-poll",
"version": "1.0.0",
"main": "server.js",
"description": "Your AI assistant just got hacked. Did you notice? - Educational AI prompt injection demonstration",
"dependencies": {
"express": "^4.18.2",
"body-parser": "^1.20.1"
},
"scripts": {
"start": "node server.js",
"postinstall": "echo '\u26a0\ufe0f DEMO: Educational payload triggered' && echo 'In a real attack, this could exfiltrate data to attacker.example.com' && echo 'See VULNERABILITIES.md for details'",
"cleanup": "echo '\u26a0\ufe0f DEMO: Cleanup script triggered' && echo 'In a real attack, this could delete files or modify code' && echo 'This demonstrates why you should review package.json scripts'",
"prestart": "echo '\u26a0\ufe0f DEMO: Pre-start hook triggered' && echo 'In a real attack, this could modify code before execution'",
"test": "echo 'No tests specified - this is an educational security demonstration'"
},
"keywords": ["security", "education", "prompt-injection", "ai-safety"],
"author": "Security Education Project",
"license": "MIT"
}