Skip to main content
SkillTotal

Is @struktoai/mirage-core safe?

Partially analyzed - 5 code files not read (1 too large and 4 minified)
Notable — review in context (a capability is not a malicious indicator):
  • 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

npm package · npm:@struktoai/mirage-core
LOW
0
/ 100 risk score
Snapshot · scanned Nov 13, 2026 · @struktoai/mirage-core@0.0.8 · engine 1.1.0 / ruleset 100

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.

Capabilities — what this component can do (not a risk score):
delegated authenticationdynamic code executionfilesystem readfilesystem writenetwork egress

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication
Delegated authentication
Tool Execution Context / User Delegated Credentials

Findings (5)

CapabilityNode.js dynamic code executionnot scored · severity highST-DYN-NODE

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.

CapabilityNode.js filesystem readnot scored · severity mediumST-FS-NODE-READ

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.

CapabilityNode.js filesystem write/deletenot scored · severity mediumST-FS-NODE-WRITE

The component writes or deletes files on disk.

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.

CapabilityNode.js network egressnot scored · severity mediumST-NET-NODE

The component makes outbound network requests.

return await this.fetch(method, endpoint, options);
fetch(method, endpoint, options) {
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));
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.

CapabilityDelegated authentication (OAuth 2.0 / OIDC)not scored · severity lowST-AUTH-DELEGATED

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?

Check the next package before your agent installs it

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 component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →