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

@pensar/apex

Latest version: v2.7.0-canary.5f2e3acc

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: jaraad, josh-pensar, keremp
333 Stars
68 Forks
106 Versions
7.7K Downloads
TypeScript Repo language

Scan summary

@pensar/apex was last scanned on 25 Nov 2026 at version 2.7.0-canary.5f2e3acc. Risk score 5 of 100 (low). No malicious behavior was detected.

  • Releases: 106 versions; the latest 5 were published within 2 days (24 and 25 Nov 2026).
  • Findings: 1 rule fired in version 2.7.0-canary.5f2e3acc (3 instances: 3 medium). The score describes this version only.
  • Downloads: 7,703 downloads.

Versions

106 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.7.0-canary.5f2e3acc LATEST 25 Nov 2026 1 rule fired
2.7.0-canary.d2996dfc 25 Nov 2026 1 rule fired
2.7.0-canary.f90c8fd4 25 Nov 2026 1 rule fired
2.7.0-canary.360bbc9b 24 Nov 2026 Not shown
2.7.0-canary.3dfb662f 24 Nov 2026 Not shown

Rules fired in 2.7.0-canary.5f2e3acc: 1

Findings

3 Medium

Findings for v2.7.0-canary.5f2e3acc. 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.

Code decoded and executed

The code decodes or decrypts a string and executes code built from it, for example eval(atob(...)) or exec(base64.b64decode(...)). This is a common way to hide code from review. On its own it is not evidence of malicious behavior.

MEDIUM
Checking access…

🔒 Create a free account to see all 3 findings with descriptions and instance counts

The score describes 2.7.0-canary.5f2e3acc; other versions have their own rules, not their own score.

README

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

Use Cases

Developers
  • Run /pentest before merging a PR — catch vulnerabilities as naturally as running tests
  • Get actionable findings with severity scores, evidence, and suggested fixes — no security background needed
  • Integrate into CI/CD via headless CLI commands or Pensar Console
Security Engineers
  • Deploy agent-driven swarm testing across large attack surfaces
  • Use /operator mode for manual investigation, exploit chaining, and validation
  • Automate repetitive testing workflows with persistent memory that accumulates across engagements
  • Scale across teams and projects through Pensar Console

Installation

Method Command
Quick Install (macOS/Linux) curl -fsSL https://pensarai.com/install.sh \| bash
Homebrew brew tap pensarai/tap && brew install apex
npm npm install -g @pensar/apex
Windows (PowerShell) irm https://www.pensarai.com/apex.ps1 \| iex

Usage

Open the Apex TUI:

pensar
Herdr

Apex automatically reports its state when launched inside Herdr. The sidebar shows working during a turn, blocked when approval, plan review, or answers are needed, and idle when Apex is ready for input. Terminal-attached CLI agent commands also report their activity. No plugin or additional Apex configuration is required.

Herdr 0.9.2 or later can restore the current conversation after a server restart. Keep pensar on your PATH; Apex supplies a resume command with the session ID, active model, and obfuscation setting. The saved session restores its operator mode and approval settings. Restored sessions wait for your next prompt.

You can also reopen a session directly:

pensar --resume <session-id>
pensar --resume <session-id> --model <model-id>

State reporting and release also work with older Herdr versions. Reports run in the background with a short timeout, and Herdr failures do not interrupt Apex.

Headless CLI

Run pentests without the TUI for scripting, CI, or evalgate integration:

# Basic pentest
pensar pentest --target https://example.com

# With extended thinking and task-driven mode
pensar pentest --target https://example.com --extended-thinking --task-driven

# Whitebox (with source code access)
pensar pentest --target https://example.com --cwd ./my-app

# Targeted pentest with specific objectives
pensar targeted-pentest --target https://example.com --objective "Test authentication bypass"
Flag Command Description
--target <url> pentest, targeted-pentest Target URL (required)
--cwd <path> pentest Source code path for whitebox mode
--mode <mode> pentest exfil for pivoting and flag extraction
--model <model> pentest, targeted-pentest AI model (default: auto-selected)
--extended-thinking pentest Enable extended thinking for supported models
--task-driven pentest Enable task-driven architecture (experimental)
--prompt <text\|@file> pentest Custom guidance for the agent
--threat-model <text\|@file> pentest Threat model to guide testing
--objective <text> targeted-pentest Testing objective (repeatable)
Hoonify inference

Connect Hoonify in /providers or set HOONIFY_API_KEY, then select a discovered model in /models. Headless commands accept --model-provider hoonify --model <catalog-model-id>. See Hoonify setup for model discovery, token budgets, and live checks.

Custom inference endpoints

Bring an OpenAI-compatible endpoint and bearer token through customProviders configuration or the APEX_CUSTOM_PROVIDERS worker environment variable. Select it with --model-provider <id> --model <model>, or choose its declared models in the operator's /models picker. See custom inference setup for GLM settings, headless job configuration, and a live connection test.

Logging

Apex routes diagnostic/operational logging through a centralized structured logger (src/core/logger). It writes one-line JSON to stderr when output is not a TTY — keeping it separate from the program's stdout and easy to ship to a log pipeline (e.g. CloudWatch) — and pretty, colorized output in an interactive terminal. User-facing CLI/TUI output stays on stdout.

Set the level (most → least verbose: debug < info < warn < error, default info):

pensar pentest --target https://example.com --log-level debug   # or --verbose / --quiet
PENSAR_LOG_LEVEL=debug pensar ...                                # via environment
PENSAR_DEBUG=1 pensar ...                                        # back-compat alias for debug

Resolution order: CLI flag → PENSAR_LOG_LEVEL → PENSAR_DEBUG → default info. PENSAR_LOG_FORMAT=json|pretty forces the output format. When Apex runs as a managed agent, PENSAR_LOG_LEVEL is supplied by the host environment.

W&B Weave Tracing

Stream step-level agent traces to Weights & Biases Weave for analysis and fine-tuning:

export WANDB_API_KEY=your-key
export WANDB_ENTITY=your-entity
# WANDB_PROJECT defaults to "apex-traces"
pensar pentest --target https://example.com

Traces include reasoning steps, tool calls, token usage, and state checkpoints. When credentials are not set, tracing is silently disabled.

OpenTelemetry (Observability)

Apex emits OpenTelemetry spans for agent runs, LLM calls, and tool executions through @opentelemetry/api. Spans are no-ops unless your process registers an OpenTelemetry SDK as the global tracer provider; Apex ships no SDK.

Register an SDK before importing Apex code:

  • Sentry: install @sentry/node ≥ 9.27 and add Sentry.vercelAIIntegration() to your Sentry.init integrations.
  • Any OTel backend (Honeycomb, Tempo, Datadog, etc.): register @opentelemetry/sdk-node with an OTLP exporter.

Spans follow OTel GenAI semantic conventions. Only span shape (model, token counts, latency, tool names) is captured by default; set AI_TRACE_RECORD_PAYLOADS=true to also record prompts, tool I/O, and outputs.

Kali Linux Container (Optional)

For best performance, run Apex in the included Kali Linux container with preconfigured pentest tools:

cd container
cp env.example .env  # add your API keys
docker compose up --build -d
docker compose exec kali-apex bash

Inside the container, run:

pensar

⚠️ Responsible Use

This repository contains tools for authorized security testing only. Before use, please read and agree to the Responsible Use Disclosure.

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 @pensar/apex

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

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PolinRider Returns
Research

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

Frame 2085668439 (1)
Group 1261154229