Static Scan Results
scanned 3h ago · by rust-scannerStatic analysis flagged 11 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.
Static reason
One or more suspicious static signals were detected.
Decision evidence
public snapshotBehavioral surface
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
HighEntropyStringsUrlStrings
Source & flagged code
3 flagged · loading sourcepackage.jsonView file
•scripts.postinstall = mkdir -p $HOME/.hasna/instructions $HOME/.hasna/instructions/backups 2>/dev/null || true
High
Install Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg•scripts.postinstall = mkdir -p $HOME/.hasna/instructions $HOME/.hasna/instructions/backups 2>/dev/null || true
Medium
Ambiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgdist/mcp/index.jsView file
55function getDbPath() {
L56: if (process.env["HASNA_CONFIGS_DB_PATH"]) {
L57: return process.env["HASNA_CONFIGS_DB_PATH"];
...
L233: try {
L234: const parsed = JSON.parse(row.outputs || "[]");
L235: outputs = Array.isArray(parsed) ? parsed : [];
...
L484: function detectMachineContext(overrides = {}) {
L485: const homeDir = overrides.home_dir ?? process.env["CONFIGS_HOME"] ?? process.env["HOME"] ?? homedir();
L486: const os = overrides.os ?? currentOsType();
...
L491: id: "current-machine",
L492: hostname: overrides.hostname ?? currentHostname(),
L493: os,
Medium
Install Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/mcp/index.jsView on unpkg · L55Findings
1 High5 Medium5 Low
HighInstall Time Lifecycle Scriptspackage.json
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist/mcp/index.js
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings