registry  /  @hasna/instructions  /  0.4.0

@hasna/instructions@0.4.0

AI coding agent instruction & configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + HTTP API (instructions-serve) + generated SDK + Dashboard.

Static Scan Results

scanned 3h ago · by rust-scanner

Static 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 snapshot
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 4 file(s), 677 KB of source, external domains: 127.0.0.1, github.com, opencode.ai, truststore.pki.rds.amazonaws.com

Source & flagged code

3 flagged · loading source
package.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 unpkg
dist/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 · L55

Findings

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