Is @struktoai/mirage-core safe?
- Node.js dynamic code execution
- Node.js filesystem read
- Node.js filesystem write/delete
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
@struktoai/mirage-core is an npm package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: delegated authentication, dynamic code execution, filesystem read, filesystem write and network egress — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
@struktoai/ mirage-core 0.0.8
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of @struktoai/mirage-core's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (5)
The code turns strings into live code at runtime (eval / new Function / exec).
pipe.eval(TRACK_PATHS, {const [initialStatus, token] = (await c.eval(RECOVER_PATHS, {[status] = (await c.eval(RECOVER_PATHS, {[status] = (await c.eval(RECOVER_PATHS, {return await c.eval(script, options);
pipe.eval(SEED_LISTING, {pipe.eval(PUT_ENTRY, {pipe.eval(ADD_ENTRY, {return ((await c.eval(REPLACE_ENTRY, { keys: [key], arguments: [raw, JSON.stringify(stored)] })) ===const accepted = await c.eval(WRITE_LISTING, {const result = await (await this.client()).eval(INVALIDATE_MISSING, {await c.eval(DELETE_ENTRY, {await c.eval(BURY_LISTING, {Why it matters: If those strings aren't fixed and trusted, they become a way to run arbitrary code.
Fix: Avoid evaluating dynamically constructed code; if unavoidable, ensure the input is a trusted constant and never derived from external data.
The component reads files from disk.
return new Uint8Array(await fs.readFile(path.join(home, name)));
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
this.fs.unlink(path);
this.fs.rmdir(path);
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
The component makes outbound network requests.
return await this.fetch(method, endpoint, options);
fetch(method, endpoint, options) {return fetch();
const value = await fetch();
const data = await fetch();
return answer((await fetch())[0], child, null);
const [listing, expiresAt] = await fetch();
const fetched = await fetch(missing);
const page = pages.at(await fetch(pages.select(AFTER), cursor));
const node = await fetch(pages.select(''));export declare function fetch(_accessor: NOOPAccessor, paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>;
export async function fetch(_accessor, paths, texts, ctx) {const send = fetchFn ?? ((input, init) => fetch(input, init));
return fetch();
const bytes = await this.fetch(from, asked);
const response = await fetch(new URL(name, base));
const response = await fetch(`${bridge}?${PARAM}=answer&id=${id}`, {const response = await fetch(`${bridge}?${PARAM}=ping`);return entry.fetch(entry.config, ref);
return fetch(configModel.parse({}), ref);Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
An OAuth 2.0 / OpenID Connect delegated-authentication flow was detected (authorization-code / refresh-token / token-exchange grant, an OIDC authorize/discovery endpoint or id_token, or a delegation library). Tools authenticate with the end user's delegated, scoped credentials rather than a long-lived embedded service credential. (3 occurrence(s) shown as evidence).
grant_type: 'refresh_token',
grant_type: 'refresh_token',
grant_type: 'refresh_token',
Fix: Delegated auth is a lower-blast-radius execution context than an embedded static credential. Confirm the requested scopes are minimal and that tokens are never logged or forwarded off-host.
Maintain @struktoai/mirage-core?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →