Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@api-core/test

Latest version: v0.0.3

Overview

Last scanned
3 Sep 2026
Published
3 Sep 2026
AI: Suspicious npm package Publisher: shanmukaanem
1 Versions
97 Downloads

Scan summary

@api-core/test was last scanned on 3 Sep 2026 at version 0.0.3. Risk score 85 of 100 (high). High-severity rules fired.

  • Releases: First and only release on 3 Sep 2026.
  • Findings: 1 rule fired in version 0.0.3 (1 high). The score describes this version only.
  • Downloads: 97 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.3 LATEST 3 Sep 2026 1 rule fired

Rules fired in 0.0.3: 1

Findings

1 High

Findings for v0.0.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

New package re-exports an undocumented dependency

The package's main entry point re-exports code from a dependency that its README never mentions, and the package is newly published with few versions. Users of such a package run the dependency's code without knowing it is there. Established packages sometimes do this for ordinary reasons.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.0.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@api-core/test

Playwright test integration for API-Core projects.

Features

  • 🎭 Native Playwright Integration: Strongly typed fixtures for API registries and authentication.
  • ⚡ Zero Boilerplate: Compose registries with createApiTest({ registries }) and consume fixtures directly.
  • 🔒 Type-Safe User Isolation: Context-isolated authentication with auth.use('viewer').
  • 🧩 1:1 Fixture Mapping: Each registry becomes exactly one fixture (users.call('get')), and auth is a separate fixture (auth).

Quick Start

1. Define Registries
// registry.ts
import { createApi, createAuthApi, createApiRegistry } from '@api-core/test';

export const auth = createAuthApi({
  method: 'POST',
  endpoint: '/login',
  users: {
    admin: { email: 'admin@example.com', password: 'secret' },
    viewer: { email: 'viewer@example.com', password: 'secret' },
  },
  defaultUser: 'admin',
  token: 'data.accessToken',
});

const getUser = createApi({
  method: 'GET',
  endpoint: '/users/{{userId}}',
});

export const users = createApiRegistry({
  apis: {
    get: getUser,
  },
  config: {
    baseUrl: process.env.API_BASE_URL || 'https://api.example.com',
    data: {
      userId: 123,
    },
  },
});
2. Export Fixtures
// fixtures/api.fixture.ts
import { createApiTest } from '@api-core/test';
import { users, auth } from '../registry';

export const test = createApiTest({
  registries: {
    users,
  },
  auth,
});

export { expect } from '@playwright/test';
3. Write API Tests
import { test, expect } from './fixtures/api.fixture';

test('gets user details', async ({ users }) => {
  const response = await users.call('get');
  expect(response.status).toBe(200);
});

test('viewer authentication', async ({ auth, users }) => {
  await auth.use('viewer');
  const response = await users.call('get');
  expect(response.status).toBe(200);
});

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @api-core/test

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
npm

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229