live · scanning repos
Scanrepo
github.com / Immortal-Protocols

Immortal-Protocols/lastbook

Python·758 files·commit 4fd221e·scanned 6d ago·cached ✓
25/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.

score capped at 25 — 2,207 stars — findings likely legitimate code patterns

scored by engine v10: rules have changed since, rescan for the current result

verdict accurate?
Created 6 days ago
Created in the last 7 days
37% file coverage
threat-state: lowlive

FINDINGS ░▒▓

criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.app/tests/cdp.py

    def eval(self, expr, seconds=60):
        r = self.call('Runtime.evaluate', {'expression': expr, 'returnByValue': True, 'awaitPromise': True}, seconds)
        if 'exceptionDetails' in r:
+8
criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.app/tests/cdp.py

    def eval(self, expr, seconds=60):
        r = self.call('Runtime.evaluate', {'expression': expr, 'returnByValue': True, 'awaitPromise': True}, seconds)
        if 'exceptionDetails' in r:
+7
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.app/tests/mac_noscript_check.py
<style>@import url({D}/page-import);@font-face{{font-family:Z;src:url({D}/page-font)}}body{{font-family:Z;background:url({D}/page-bg)}}</style>
<script>{beacon("inline")}</script><script src="/pages/n...
+8
criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.app/tests/mac_noscript_check.py
<style>@import url({D}/page-import);@font-face{{font-family:Z;src:url({D}/page-font)}}body{{font-family:Z;background:url({D}/page-bg)}}</style>
<script>{beacon("inline")}</script><script src="/pages/n...
+7
criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.app/tests/mac_package_contents.py
        if code:
            exec(code, module.__dict__)

class Outside(importlib.abc.MetaPathFinder):
+7
criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.app/tests/test_chat_steps.py
const i = chat.indexOf('function stepText('), j = chat.indexOf('\n  function srcHref');
const stepText = new Function(esc + '\n' + chat.slice(i, j) + '\nreturn stepText;')();
const out = JSON.parse(pr...
+5
criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.app/tests/test_chat_tables.py
const i = chat.indexOf('function md('), j = chat.indexOf('\n  function wire(');
const md = new Function(esc + '\n' + chat.slice(i, j) + '\nreturn md;')();
const m = { sources: [{ key: 'S1' }, { key: '...
+5
warningPython subprocess / os.system usageos.system() or subprocess with shell=True / suspicious commands can execute arbitrary shell commands. Plain pip/package installs are usually benign.app/tests/test_run_source_linux.py
        env = {'PATH': str(self.bin), 'PYTHON': sys.executable, 'HOME': str(self.tmp), 'GST_MISSING': missing}
        return subprocess.run([shutil.which('bash'), str(self.script), '--check', str(sel...
+4
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.app/tests/win_canary.py
<script>{mark("inline")}</script>
<script>eval({json.dumps(mark("eval"))})</script>
<script src="/pages/pkg/x.js"></script>
<script type="module" src="/pages/pkg/mod.js"></script>
+8
warningPython subprocess / os.system usageos.system() or subprocess with shell=True / suspicious commands can execute arbitrary shell commands. Plain pip/package installs are usually benign.packaging/address_indexes.py
def public_sha(url):
    process = subprocess.Popen(['curl', '-fLsS', '--retry', '3', '--max-time', '600', url], stdout=subprocess.PIPE)
    digest = hashlib.sha256()
    count = 0
+4
warningPython subprocess / os.system usageos.system() or subprocess with shell=True / suspicious commands can execute arbitrary shell commands. Plain pip/package installs are usually benign.packaging/app_test/proc_log.py
while time.time() < end:
    o = subprocess.run(['powershell', '-NoProfile', '-Command', PS], capture_output=True, text=True, errors='replace').stdout
    try:
        for r in json.loads(o):
+4
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
criticalPython base64 payload executionDecoding a base64 blob and passing it to exec()/compile() is a common obfuscation technique in Python malware.app/tests/cdp.py
        with open(path, 'wb') as f:
            f.write(base64.b64decode(self.call('Page.captureScreenshot', {'format': 'png'})['data']))

    def click(self, x, y, button='left'):
+8
warningExtremely long lines (>1000 chars)Very long lines in source files (not minified bundles) can hide malicious code.engine/library.py+4
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.web/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.engine/library.py+3
warningHigh-entropy string literalsFound 4 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.packaging/app_test/use.py+3
warningHigh-entropy string literalsFound 8 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.packaging/app_walk.py+3
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.packaging/app_walk.py+3
warningHigh-entropy string literalsFound 5 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.packaging/build_packs.py+3
infoSuspicious file in repoExecutable file (win_exe.ps1) in repositoryapp/tests/win_exe.ps1+2
infoSuspicious file in repoExecutable file (win_product.ps1) in repositoryapp/tests/win_product.ps1+2
infoSuspicious file in repoExecutable file (win_run.ps1) in repositoryapp/tests/win_run.ps1+2

Scores reflect the files and rules covered by this scan. How to read this report

283 files scanned @ 4fd221e | 11/19/2026 | heuristic scan — always review manually

risk by category
code execution25
network & exfiltration0
file system access0
obfuscation15
supply chain12
owasp / injection0
telemetry
files 283/758rules hit 23engine v10commit 4fd221e

github

Immortal-Protocols/lastbook

Offline knowledge AI, maps and videos for survival and rebuilding

Python
2207
289
12d
758 files
283 scanned(37%)
4fd221e

network indicators░▒▓

Hosts this code names or would connect to. Top 50 of 518, decoded and call-site destinations first. Informational, not scored.

architecture░▒▓

entry (0) flagged (20) pkg (183)
389 nodes · 1086 edgesscroll to zoom · click node to jump to finding