boss-ai-assistant
This Boss直聘 automation script contains multiple critical security issues: hardcoded API credentials, external IP communication for data exfiltration, self-update from untrusted server, and undeclared behaviors.
Real API key for Alibaba DashScope service is hardcoded in CONFIG object, allowing unauthorized API usage by anyone with access to the script.
scripts/boss_ai_assistant.js:28 Why this conclusion was reached
3/4 dimensions flagged2 undeclared or violating capabilities were inferred.
4 high-risk artifacts or egress signals were extracted.
The report includes 5 attack-chain steps and 7 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
Attack Chain
Entry · SKILL.md:14
Escalation · scripts/boss_ai_assistant.js:130
Escalation · scripts/boss_ai_assistant.js:130
Escalation · scripts/boss_ai_assistant.js:15
Impact · scripts/boss_ai_assistant.js:28
What drove the risk score up
Real API key 'sk-22118c56659647e39ba847253e671062' exposed at line 28
Google Search API key '1c58b249fc64bd...' exposed at line 36
All HR conversations sent to http://121.199.76.208/hr_api.php without user consent
updateURL/downloadURL points to untrusted IP, could serve malicious code
Auto-agrees to wechat/resume exchange without explicit user action per message
Phone, email, name hardcoded in RESUME object
Most important evidence
Hardcoded DashScope API Key
Real API key for Alibaba DashScope service is hardcoded in CONFIG object, allowing unauthorized API usage by anyone with access to the script.
scripts/boss_ai_assistant.js:28 Hardcoded Google Search API Key
Google Custom Search API key is hardcoded, enabling unauthorized search quota consumption.
scripts/boss_ai_assistant.js:36 All Conversations Exfiltrated to External IP
Every HR conversation including personal job search data, contact info, and messages is sent to http://121.199.76.208/hr_api.php without explicit user consent or encryption.
scripts/boss_ai_assistant.js:130 Self-Update from Untrusted External IP
Script defines updateURL and downloadURL pointing to http://121.199.76.208/boss_auto_greet.user.js, allowing remote code injection if server is compromised.
scripts/boss_ai_assistant.js:15 Personal Contact Information Hardcoded
Phone number (18611101221) and email ([email protected]) of the operator are hardcoded in RESUME object.
scripts/boss_ai_assistant.js:45 Undeclared External Server Communication
SKILL.md does not mention communication with http://121.199.76.208 server or data storage on external database. Users are unaware their conversations are being sent elsewhere.
SKILL.md:1 Undeclared Automated Actions
Script automatically clicks 'agree' buttons for wechat exchange and resume requests without per-message user confirmation. This bypasses user intent verification.
scripts/boss_ai_assistant.js:199 Bark Push Notification with Embedded Key
Bark notification URL contains embedded device key, potentially exposing push channel.
scripts/boss_ai_assistant.js:29 Declared capability vs actual capability
scripts/boss_ai_assistant.js:517 - POSTs to external APIs scripts/boss_ai_assistant.js:199-229 - Auto-clicks agree buttons Suspicious artifacts and egress
sk-22118c56659647e39ba847253e671062 scripts/boss_ai_assistant.js:28
121.199.76.208 scripts/boss_ai_assistant.js:13
apiKey: 'sk-22118c56659647e39ba847253e671062' scripts/boss_ai_assistant.js:28
ApiKey: '1c58b249fc64bd1183c1075c8a9f81e142d197096c384ffe0e3bc096932c8847' scripts/boss_ai_assistant.js:36
https://www.zhipin.com/web/geek/chat* SKILL.md:29
https://dashscope.console.aliyun.com/ references/config.md:8
https://programmablesearchengine.google.com/ references/config.md:14
https://api.day.app/ references/config.md:19
http://tampermonkey.net/ scripts/boss_ai_assistant.js:3
https://www.google.com/s2/favicons?sz=64&domain=zhipin.com scripts/boss_ai_assistant.js:8
http://121.199.76.208/boss_auto_greet.user.js scripts/boss_ai_assistant.js:15
https://api.day.app/BMtjb8EnZjV6qsRH4pgaqY/ scripts/boss_ai_assistant.js:29
Dependencies and supply chain
There are no structured dependency warnings.
File composition
scripts/boss_ai_assistant.js SKILL.md references/config.md