live · scanning repos
Scanrepo
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
+5
warningSuspicious 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
+5
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.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)
+10
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.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...
+10
criticalFunction() 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...
+5
criticalHTTP 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...
+10
criticalFunction() 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: '', ...
+5
warningSuspicious 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
infoSuspicious files are not reachable from entry pointsFlagged files exist but are not imported by any entry point. They may be dead code, tests, or attack payloads triggered by another mechanism.+2
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...
+2
criticalRemote 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...
+2
infoBase64 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...
+2
warningExtremely 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
infoSuspicious file in repoExecutable file (Install Haven.bat) in repositoryInstall Haven.bat+2
infoSuspicious file in repoExecutable file (Install Haven.ps1) in repositoryInstall Haven.ps1+2
infoSuspicious file in repoExecutable file (Start Haven.bat) in repositoryStart Haven.bat+2
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",
+3
warningUnvalidated 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",
+3
warningUnvalidated 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.

JavaScript
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.

architecture░▒▓

entry (0) flagged (5) pkg (36)
436 nodes · 695 edgesscroll to zoom · click node to jump to finding