github.com / ancsemi
ancsemi/ Haven
JavaScript·988 files·commit 244e86c·scanned 6d ago·cached ✓
25/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.
score capped at 25 — 1,140 stars — findings likely legitimate code patterns
scored by engine v10: rules have changed since, rescan for the current result
verdict accurate?
Partial architecture graph
threat-state: lowlive
FINDINGS ░▒▓
criticalRemote script piped into a shellA shell script downloads remote content and executes it directly (e.g. `curl … | bash`). The payload is never stored or reviewable and can change server-side — a classic malware/backdoor install pattern.scripts/setup-automod-ai.sh
echo "• Installing Ollama..." curl -fsSL https://ollama.com/install.sh | sh fi if command -v ollama >/dev/null 2>&1 && [ "$DRY_RUN" -eq 0 ] && ! curl -fsS --max-time 2 http://127.0.0.1:11434/api/t...+10
warningSuspicious Windows batch commandBatch file contains commands commonly used to download and execute remote payloads (powershell, certutil, bitsadmin, curl to pipe, etc.).Install Haven.bat
:: Use the existing install-node.ps1 helper
call powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-node.ps1"
if %ERRORLEVEL% NEQ 0 (
color 0C+5warningSuspicious Windows batch commandBatch file contains commands commonly used to download and execute remote payloads (powershell, certutil, bitsadmin, curl to pipe, etc.).Start Haven.bat
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-node.ps1"
if %ERRORLEVEL% NEQ 0 (
color 0C+5criticalRemote script piped into a shellA shell script downloads remote content and executes it directly (e.g. `curl … | bash`). The payload is never stored or reviewable and can change server-side — a classic malware/backdoor install pattern.docs/examples/proxmox-lxc/create-haven-lxc.sh
apt-get update -qq
apt-get install -y -qq curl git build-essential sqlite3 debian-keyring debian-archive-keyring apt-transport-https gpg
# Install Node.js 22 LTS (Haven requirement)+10criticalRemote script piped into a shellA shell script downloads remote content and executes it directly (e.g. `curl … | bash`). The payload is never stored or reviewable and can change server-side — a classic malware/backdoor install pattern.install.sh
sudo apt-get update -qq
sudo apt-get install -y -qq ca-certificates curl gnupg > /dev/null 2>&1
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gp...+10criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.public/js/plugin-loader.js
// Pass globalThis as _win so plugins can register classes via _win.ClassName = ...
const factory = new Function('HavenApi', '_win', code + '\n;return (typeof module !== "undefined" && mod...+5criticalHTTP response executed as codeThe body of an HTTP response flows straight into eval, new Function, vm, require-from-string or exec. Whoever controls the server decides what runs, and the code never appears in the repository.public/js/plugin-loader.js
resp = await fetch(`/plugins/${meta.file}?_=${Date.now()}`) … code = await resp.text() … new Function('HavenApi', '_win', code + '\n;return (typeof module !== "undefined" && module.exports) || (typeof...+10criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.test/missedCallLine.test.js
const body = head.slice(head.indexOf('{') + 1);
const create = new Function('t', 'document', `return function(msg, prevMsg) {${body} return null; };`);
const el = () => ({ dataset: {}, className: '', ...+5warningSuspicious Windows batch commandBatch file contains commands commonly used to download and execute remote payloads (powershell, certutil, bitsadmin, curl to pipe, etc.).website/Install Haven.bat
:: Download and install Node.js using PowerShell powershell -NoProfile -ExecutionPolicy Bypass -Command ^ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;" ^+5
infoBase64 encoding usedatob() or Buffer.from with base64. Common in legitimate code but also used to hide malicious URLs.src/activity.js
try {
const decipher = crypto.createDecipheriv('aes-256-gcm', deriveKey(), Buffer.from(parts[0], 'base64'));
decipher.setAuthTag(Buffer.from(parts[1], 'base64'));
return Buffer.concat([d...+2criticalRemote code fetch + executionFetching code from a remote server and executing it with eval() is the #1 pattern in LinkedIn/crypto scam malware.public/js/plugin-loader.js+10
infoBase64 encoding usedatob() or Buffer.from with base64. Common in legitimate code but also used to hide malicious URLs.test/badges.integration.test.js
// A 1x1 transparent PNG.
const PNG = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==', 'base64');
async function uploadIcon(token, bytes...+2infoBase64 encoding usedatob() or Buffer.from with base64. Common in legitimate code but also used to hide malicious URLs.test/profileBanner.integration.test.js
// A 1x1 PNG, enough for the upload to accept.
const PNG = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==', 'base64');
function upload(r...+2warningExtremely long lines (>1000 chars)Very long lines in source files (not minified bundles) can hide malicious code.public/js/app.js+4
warningHigh-entropy string literalsFound 17 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.public/js/app.js+3
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.public/js/modules/app-forum.js+3
warningUnvalidated file uploadFile upload without type/size validation. Can be exploited for remote code execution or storage abuse.package-lock.json
"localtunnel": "^2.0.2",
"multer": "^2.5.0",
"music-metadata": "^11.16.0",
"otpauth": "^9.5.0",+3warningUnvalidated file uploadFile upload without type/size validation. Can be exploited for remote code execution or storage abuse.package.json
"localtunnel": "^2.0.2",
"multer": "^2.5.0",
"music-metadata": "^11.16.0",
"otpauth": "^9.5.0",+3warningUnvalidated file uploadFile upload without type/size validation. Can be exploited for remote code execution or storage abuse.src/diskGuard.js
* * Runs before multer, because multer streams the body to disk as it arrives: * checking afterwards would mean the file is already written and the space * this guard exists to protect is already ...+3
Scores reflect the files and rules covered by this scan. How to read this report
695 files scanned @ 244e86c | 11/18/2026 | heuristic scan — always review manually
risk by category
code execution25
network & exfiltration16
file system access0
obfuscation10
supply chain12
owasp / injection9
telemetry
files 695/988rules hit 23engine v10commit 244e86c
github
ancsemi/Haven
Self-hosted private chat: no cloud, no telemetry, no Big Tech. Discord alternative that runs on your own machine.
1140
120
287d
988 files
695 scanned(70%)
244e86c
network indicators░▒▓
Hosts this code names or would connect to. Top 50 of 287, decoded and call-site destinations first. Informational, not scored.
- https://ollama.com/install.shurlnext to execscripts/setup-automod-ai.sh:166
- https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.keyurlnext to network callinstall.sh:54 +1 more
- https://rpm.nodesource.com/setup_22.xurlnext to network callinstall.sh:74 +3 more
- https://deb.nodesource.com/setup_26.xurlnext to network callstart.sh:31 +1 more
- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.shpaste hostinstall.sh:182 +1 more
- https://api.github.com/repos/ancsemi/Haven/releases/latesturlnext to network callpublic/js/modules/app-platform.js:130
- https://api.github.com/repos/ancsemi/Haven/releasesurlnext to network callpublic/js/modules/app-platform.js:133 +1 more
- https://ntfy.shurlnext to network callscripts/community-status.js:144 +1 more
- https://api.ipify.orgurlnext to network callserver.js:1280 +2 more
- https://portchecker.io/api/v1/queryurlnext to network callserver.js:1299
- https://api.klipy.com/api/v1/$urlnext to network callserver.js:1419
- https://challenges.cloudflare.com/turnstile/v0/siteverifyurlnext to network callsrc/auth.js:238
- https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/urlnext to network callsrc/connectRoutes.js:346 +1 more
- https://api.spotify.com/v1/meurlnext to network callsrc/connectRoutes.js:432
- https://api.fxtwitter.com/$urlnext to network callsrc/routes/link-preview.js:273
- https://fxtwitter.comurlnext to network callsrc/routes/link-preview.js:311 +1 more
- https://www.youtube.com/watchurlnext to network callsrc/routes/link-preview.js:393 +20 more
- https://www.youtube.com/oembedurlnext to network callsrc/routes/link-preview.js:395 +1 more
- https://embed.pixiv.net/oembed.phpurlnext to network callsrc/routes/link-preview.js:416
- https://public.api.bsky.app/xrpc/…urlnext to network callsrc/routes/link-preview.js:441 +1 more
- https://cdn.discordapp.com/emojis/$urlnext to network callsrc/routes/media-library.js:426
- https://open.spotify.com/oembedurlnext to network callsrc/socketHandlers/musicResolver.js:11
- https://open.spotify.com/embed/$urlnext to network callsrc/socketHandlers/musicResolver.js:52 +1 more
- https://www.youtube.com/youtubei/v1/searchurlnext to network callsrc/socketHandlers/musicResolver.js:83 +1 more
- https://www.youtube.com/resultsurlnext to network callsrc/socketHandlers/musicResolver.js:126
- https://www.youtube.com/youtubei/v1/browseurlnext to network callsrc/socketHandlers/musicResolver.js:264 +1 more
- https://noembed.com/embedurlnext to network callsrc/socketHandlers/musicResolver.js:322
- spotify.comdomainnext to network callsrc/socketHandlers/musicResolver.js:320 +9 more
- https://dl.cloudsmith.io/public/caddy/stable/gpg.keyurlnext to network calltest onlydocs/examples/proxmox-lxc/create-haven-lxc.sh:322
- https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txturlnext to network calltest onlydocs/examples/proxmox-lxc/create-haven-lxc.sh:323
- https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpgurlnext to network calltest onlydocs/examples/proxmox-lxc/create-haven-lxc.sh:331
- https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.listurlnext to network calltest onlydocs/examples/proxmox-lxc/create-haven-lxc.sh:332
- https://deb.nodesource.com/node_22.xurlinstall.sh:55 +1 more
- https://ollama.comurlscripts/setup-automod-ai.sh:209
- 168.63.129.16ipsrc/webhookCallback.js:58
- https://us-central1-amni-haven.cloudfunctions.net/sendPushurlinstaller/server.js:244 +1 more
- https://generativelanguage.googleapis.com/v1beta/modelsurlplugins/AutoModQuarantine.plugin.js:16
- https://api.anthropic.com/v1/messagesurlplugins/AutoModQuarantine.plugin.js:26
- https://api.openai.com/v1/chat/completionsurlplugins/AutoModQuarantine.plugin.js:35
- https://api.x.ai/v1/chat/completionsurlplugins/AutoModQuarantine.plugin.js:44 +1 more
- https://opencode.ai/zen/v1/chat/completionsurlplugins/AutoModQuarantine.plugin.js:53 +2 more
- https://api.meta.ai/v1/chat/completionsurlplugins/AutoModQuarantine.plugin.js:90 +3 more
- https://openrouter.ai/api/v1/chat/completionsurlplugins/AutoModQuarantine.plugin.js:96
- https://api.mistral.ai/v1/chat/completionsurlplugins/AutoModQuarantine.plugin.js:97
- https://api.deepseek.com/chat/completionsurlplugins/AutoModQuarantine.plugin.js:98
- https://agar.iourlpublic/games/io-games.js:3
- https://slither.iourlpublic/games/io-games.js:4
- https://diep.iourlpublic/games/io-games.js:5
- https://krunker.iourlpublic/games/io-games.js:6
- https://surviv.iourlpublic/games/io-games.js:7
architecture░▒▓
entry (0) flagged (5) pkg (36)
436 nodes · 695 edgesscroll to zoom · click node to jump to finding