{"score":80,"grade":"B","scannedAt":"2026-12-05T23:03:19.758Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"@raajvamsy/memorylayer","version":"1.7.1","license":"MIT","repository":"https://github.com/raajvamsy/MemoryLayer","firstPublished":"2026-06-22T03:45:23.376Z","lastPublished":"2026-09-20T07:04:17.706Z","versions":8,"maintainers":1,"files":35,"bytes":7309011,"hosts":["api.memorylayer.in","memorylayer.in"]},"capabilities":{"network":false,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"install-script","severity":"medium","title":"Runs a script automatically when installed (postinstall)","file":"package.json","snippet":"node scripts/postinstall.mjs"},{"rule":"install-script","severity":"medium","title":"Runs a script automatically when installed (preinstall)","file":"package.json","snippet":"node scripts/preinstall.mjs"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/ide/cursor/hooks/before_submit_prompt.js","line":20,"snippet":"if (firstTurn) { try { fs.writeFileSync(flag, \"1\"); } catch {} }"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/ide/shared/hooks/common.js","line":30,"snippet":"try { fs.unlinkSync(flagPath(key, name)); } catch {}"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/ide/shared/hooks/common.js","line":85,"snippet":"const { execSync } = require(\"child_process\");"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/ide/shared/hooks/common.js","line":86,"snippet":"return execSync(\"git rev-parse HEAD 2>/dev/null\", { cwd, timeout: 1500 })"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/ide/claude/hooks/cwd_changed.js","line":32,"snippet":"const envFile = process.env.CLAUDE_ENV_FILE;"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/ide/claude/hooks/db_helper.js","line":14,"snippet":"const { execFileSync } = require(\"child_process\");"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/premium/loader.js","line":45,"snippet":"…FetchBlob(t,e).then(a=>{try{f.mkdirSync(o,{recursive:!0}),f.writeFileSync(n,a.wire),f.writeFileSync(r,a.sig)}catch{}return a}).finally(()=>this.blobInflight.del"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/premium/loader.js","line":45,"snippet":"…key.fill(0),this.keyCache.delete(t)}moduleVersion(t){return(process.env.npm_package_version??\"1\").split(\".\")[0]||\"1\"}async prefetchKey(t){const e=this.moduleVer"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/ide/claude/hooks/session_start.js","line":41,"snippet":"const envFile = process.env.CLAUDE_ENV_FILE;"}],"vulns":[],"installScripts":["preinstall","postinstall"],"server":{"name":"in.memorylayer/memorylayer","title":"MemoryLayer","description":"Local-first persistent memory for AI agents, with reasoning and formal verification.","websiteUrl":"https://memorylayer.in","version":"1.7.1"}}