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

@openape/core

Latest version: v1.1.0

Overview

Last scanned
11 Nov 2026
Published
11 Nov 2026
npm package Publisher: patrick-hofmann
4 Stars
1 Forks
2 Versions
165 Downloads
TypeScript Repo language

Scan summary

@openape/core was last scanned on 11 Nov 2026 at version 1.1.0. Risk score 45 of 100 (medium). High-severity rules fired.

  • Releases: 2 versions; the latest was published on 11 Nov 2026.
  • Findings: 1 rule fired in version 1.1.0 (1 high). The score describes this version only.
  • Downloads: 165 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.0 LATEST 11 Nov 2026 1 rule fired
1.0.0 14 Oct 2026 No rules fired

Rules fired in 1.1.0: 1

Findings

1 High

Findings for v1.1.0. 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.

Encoded data placed in a DNS lookup

A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.

HIGH
Checking access…

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

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

README

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

@openape/core

Foundation layer for the OpenApe ecosystem. Provides shared types, cryptographic primitives, DNS resolution, and validation utilities used by all other packages.

Installation

npm install @openape/core

Modules

Types

Core type definitions for the DDISA protocol and grant system.

  • DDISARecord — Parsed DNS TXT record pointing to an IdP
  • SPManifest — Service Provider metadata (id, name, redirect URIs, JWKS)
  • DDISAAssertionClaims — Signed assertion payload (iss, sub, aud, act, nonce, ...)
  • AuthorizationRequest — Authorization endpoint parameters
  • TokenExchangeRequest — Token endpoint parameters
  • AuthFlowState — Client-side state during authorization flow
  • OpenApeGrant — Grant object with status, requester, target, permissions
  • OpenApeGrantRequest — Grant creation request
  • OpenApeAuthZClaims — Authorization JWT payload
  • GrantType — 'once' | 'timed' | 'always'
  • GrantStatus — 'pending' | 'approved' | 'denied' | 'revoked' | 'expired' | 'used' | 'withdrawn'
  • PolicyMode — 'open' | 'allowlist-admin' | 'allowlist-user' | 'deny'
  • ActorType — 'human' | 'agent'
  • ResolverOptions — DNS resolver configuration (cache TTL, DoH provider, mocks)
Crypto

Cryptographic utilities for key management, JWTs, PKCE, and password hashing.

  • generateKeyPair() — Generate an Ed25519 key pair
  • signJWT(payload, privateKey, options?) — Sign a JWT
  • verifyJWT<T>(token, keyOrJWKS, options?) — Verify and decode a JWT
  • createRemoteJWKS(jwksUri) — Create a JWKS fetcher for remote key sets
  • exportPublicKeyJWK(publicKey, kid?) — Export public key as JWK
  • importJWK(jwk) — Import a JWK into a KeyLike
  • generateCodeVerifier(length?) — Generate a PKCE code verifier
  • generateCodeChallenge(verifier) — Compute S256 code challenge
  • generateState() — Random state parameter
  • generateNonce() — Random nonce
  • generateSalt() — Random salt for password hashing
  • hashPassword(password) — Hash a password (argon2-like)
  • verifyPassword(password, hash) — Verify a password against a hash
DNS

DDISA record resolution via DNS TXT lookups with DoH fallback and caching.

  • resolveDDISA(domain, options?) — Resolve DDISA record for a domain
  • resolveIdP(domain, options?) — Shortcut: resolve and return only the IdP URL
  • clearDNSCache() — Clear the in-memory DNS cache
  • parseDDISARecord(raw) — Parse a raw TXT record string
  • extractDomain(email) — Extract domain from an email address
  • resolveTXTviaDoh(domain, provider?) — Resolve TXT records via DNS-over-HTTPS
  • detectRuntime() — Detect current JS runtime ('node' | 'bun' | 'deno' | 'edge' | 'browser')
Validation

Validate assertions, authorization JWTs, and SP manifests.

  • validateAssertion(token, jwks, options?) — Validate a signed DDISA assertion
  • validateAuthzJWT(token, jwks, options?) — Validate an authorization JWT
  • computeCmdHash(command) — Compute command hash for grant verification
  • validateSPManifest(manifest) — Validate an SP manifest object
  • fetchAndValidateSPManifest(uri) — Fetch and validate a remote SP manifest
Constants
  • ALGORITHM — Signing algorithm (EdDSA)
  • MAX_ASSERTION_TTL — Maximum assertion lifetime
  • WELL_KNOWN_JWKS, WELL_KNOWN_SP_MANIFEST — Well-known paths
  • DNS_TXT_TYPE — DNS record type for DDISA
  • DOH_PROVIDERS — Built-in DNS-over-HTTPS provider URLs

Usage

DNS Resolution
import { resolveDDISA, resolveIdP } from '@openape/core'

// Full DDISA record
const record = await resolveDDISA('example.com')
// { version: 'ddisa1', idp: 'https://id.example.com', mode: 'open', raw: '...' }

// Just the IdP URL
const idpUrl = await resolveIdP('example.com')
// 'https://id.example.com'
JWT Signing & Verification
import { generateKeyPair, signJWT, verifyJWT } from '@openape/core'

const { publicKey, privateKey } = await generateKeyPair()

const token = await signJWT(
  { sub: 'user@example.com', aud: 'sp.example.com' },
  privateKey,
  { expiresIn: '5m' }
)

const { payload } = await verifyJWT(token, publicKey)
PKCE
import { generateCodeVerifier, generateCodeChallenge } from '@openape/core'

const verifier = generateCodeVerifier()
const challenge = await generateCodeChallenge(verifier)

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 @openape/core

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229