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

@farazirfan/costar-server-executor

Latest version: v2.0.19

Overview

Last scanned
12 Nov 2026
Published
4 Sep 2026
AI: Malicious npm package Publisher: costar-agi, talhaashraf420
5 Versions
20.9K Downloads

Scan summary

@farazirfan/costar-server-executor was last scanned on 12 Nov 2026 at version 2.0.19. Risk score 90 of 100 (critical). High-severity rules fired and the AI review flagged it as malicious.

  • Releases: 5 versions; the latest 2 were published on 4 Sep 2026.
  • Findings: 3 rules fired in version 2.0.19 (3 high). The score describes this version only.
  • Downloads: 20,933 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.19 LATEST 4 Sep 2026 3 rules fired
2.0.18 4 Sep 2026 3 rules fired
2.0.16 28 Aug 2026 3 rules fired
2.0.15 24 Aug 2026 Not shown
2.0.0-beta.27-parallel.121 24 Aug 2026 Not shown

Rules fired in 2.0.19: 3

Findings

3 High

Findings for v2.0.19. 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.

AI review assessed the package as likely malicious

An automated AI review assessed the package's behavior as likely malicious, based on code excerpts, package metadata and the other findings for this package. It is an automated assessment, not a confirmed result on its own, and should be reviewed.

HIGH

Machine identity read next to a network call in install-time code

HIGH

Several suspicious behaviors form a known attack pattern

HIGH
Checking access…

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

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

README

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

CoStar Server Executor

A TypeScript implementation of autonomous AI agent patterns, cloned from OpenClaw and enhanced with built-in tools from ProjectX.

Overview

CoStar Server Executor is a 24/7 autonomous agent framework that:

  • ✅ Executes tasks using Claude AI (Anthropic API)
  • ✅ Has access to 32 powerful tools (file operations, web, email, calendar, maps, and more)
  • ✅ Supports modular skills using the AgentSkills.io standard
  • ✅ Runs heartbeat checks for proactive monitoring
  • ✅ Stores memory and context in Supabase
  • ✅ Can be used as a CLI tool or TypeScript library

Features

Core Capabilities
  • Agentic Execution Loop: Multi-turn conversations with tool use
  • 32 Built-in Tools: File ops, shell execution, web search/fetch, browser automation, memory, email, calendar, maps, image/video generation, and more
  • Skills System: AgentSkills.io compatible framework for modular capabilities
  • Workspace Context: Loads context from AGENTS.md, MEMORY.md, USER.md, PROJECTS.md
  • Heartbeat Checks: Proactive monitoring using HEARTBEAT.md instructions
  • Supabase Integration: Persistent memory and data storage
Tool Categories (32 tools)
File Operations (5 tools)
  • read - Read file contents
  • write - Write file contents
  • edit - Edit file with search/replace
  • grep - Search file contents
  • glob - Find files by pattern
Execution Tools (2 tools)
  • exec - Execute shell commands with PTY support
  • process - Manage shell command sessions
Web Tools (3 tools)
  • web_search - Search the web using Brave Search API
  • web_fetch - Fetch and extract web page content
  • browser - Control headless Chromium browser
Agent Tools (5 tools)
  • memory - Store and recall information in Supabase
  • message - Send messages to the user
  • image - Analyze images using GPT-4V
  • tts - Text-to-speech using OpenAI TTS
  • session_status - Get current session information
Email Tools (4 tools)
  • search_emails - Search Gmail messages
  • send_email - Send plain-text or HTML email via Gmail (is_html: true renders the body as HTML)
  • read_email - Read specific email by ID
  • read_email_thread - Read entire email thread

The mobile email flow uses write_email_draft followed by user confirmation and send_email_draft; passing is_html: true preserves rendered HTML through that draft workflow.

Calendar Tools (4 tools)
  • get_calendar_events - List calendar events
  • create_calendar_event - Create new event
  • update_calendar_event - Update existing event
  • delete_calendar_event - Delete event by ID
Google Maps Tools (3 tools)
  • google_maps_search - Search nearby places
  • google_maps_directions - Get turn-by-turn directions
  • geocode - Convert address to coordinates
Utility Tools (3 tools)
  • generate_image - Generate images using AI (Gemini Imagen 4)
  • generate_video - Generate videos using AI (Google Veo 3.1)
  • fetch_api_data - Make HTTP requests to external APIs

Installation

# Clone the repository
git clone <your-repo-url>
cd costar-server-executor

# Install dependencies
npm install

# Copy environment template
cp .env.example .env

# Edit .env with your API keys
nano .env

# Build the project
npm run build

Configuration

Required Environment Variables
# Anthropic API Key
ANTHROPIC_API_KEY=sk-ant-...

# Supabase Configuration
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Optional Environment Variables

See .env.example for all available configuration options including:

  • Agent configuration (model, max tokens, temperature)
  • Tool API keys (OpenAI, Brave Search, Google services)
  • Workspace directory
  • Skills directories
  • Disabled tools

Usage

CLI Usage
# Execute a task
npm start "Search for recent news about AI"

# Or after building
node dist/index.js "Send an email to john@example.com about the meeting"

# Execute heartbeat check
npm start -- --heartbeat

# Show help
npm start -- --help
Library Usage
import { createAgent, executeTask, executeHeartbeat } from "costar-server-executor";

// Execute a task
const response = await executeTask("What's the weather in San Francisco?");
console.log(response);

// Or create and manage agent directly
const agent = await createAgent();
const result = await agent.executeTurn("Search for latest AI news", {
  maxTurns: 25,
  onToolCall: (toolName, toolCallId) => {
    console.log(`Tool: ${toolName}`);
  },
  onResponse: (text) => {
    console.log(`Response: ${text}`);
  },
});

console.log(result.response);

Workspace Files

Create a workspace/ directory with the following markdown files to provide context to the agent:

  • AGENTS.md - Autonomy grants and permissions
  • MEMORY.md - Agent's persistent memory
  • USER.md - User profile and preferences
  • PROJECTS.md - Active coding projects
  • HEARTBEAT.md - Instructions for heartbeat checks
  • CRON.md - Scheduled tasks

Example workspace/AGENTS.md:

# Autonomy Grants

You are authorized to:
- Search the web for information
- Read and analyze files in the workspace
- Send emails on behalf of the user
- Create calendar events
- Execute shell commands (non-destructive)

Do NOT:
- Delete important files without confirmation
- Send emails to unknown recipients
- Make financial transactions

Skills

The executor supports AgentSkills.io compatible skills. Bundled skills include:

  • /commit - Create git commits with proper formatting (Conventional Commits)
  • /test - Run tests with common frameworks (Jest, Vitest, Pytest, etc.)
  • /review-pr - Review GitHub pull requests
Creating Custom Skills

Create a SKILL.md file in workspace/skills/ or any directory specified in SKILLS_EXTRA_DIRS:

---
name: my-skill
description: What this skill does
metadata:
  emoji: "🚀"
  requires:
    bins: ["binary-name"]
    env: ["API_KEY"]
  install:
    - kind: brew
      formula: package-name
---

# Skill Instructions

Detailed markdown instructions for the agent...

See SKILLS_SYSTEM.md for complete documentation.

API Keys Required

Core Functionality
  • ANTHROPIC_API_KEY - For Claude AI agent execution
  • SUPABASE_URL + SUPABASE_SERVICE_KEY - For memory storage
Optional Tools
  • OPENAI_API_KEY - For image analysis (GPT-4V) and TTS
  • BRAVE_SEARCH_API_KEY - For web search
  • GEMINI_API_KEY - For image/video generation (Gemini Imagen 4, Veo 3.1)
  • GOOGLE_MAPS_API_KEY - For maps, geocoding, and directions
  • GOOGLE_SERVICE_ACCOUNT_JSON - For Gmail and Calendar access

Development

# Run in development mode with auto-reload
npm run dev

# Build
npm run build

# Run tests
npm test

# Lint
npm run lint

# Format
npm run format

Architecture

src/
├── agent/              # Agent execution loop
│   ├── agent.ts        # Main Agent class
│   ├── context-loader.ts  # Workspace file loader
│   └── tool-executor.ts   # Tool execution handler
├── config/             # Configuration management
│   ├── types.ts        # Config type definitions
│   └── config.ts       # Config loader and validator
├── skills/             # Skills system
│   ├── types.ts        # Skill type definitions
│   ├── loader.ts       # SKILL.md parser
│   ├── status.ts       # Requirement validation
│   └── manager.ts      # SkillsManager API
├── tools/              # Tool implementations
│   ├── built-in-tools.ts  # Built-in tools (email, calendar, maps, etc.)
│   ├── web-search.ts   # Web search tool
│   ├── browser.ts      # Browser automation tool
│   ├── memory.ts       # Memory tool
│   └── ...             # Other tools
├── types/              # Type definitions
│   └── tool.ts         # Tool types
├── utils/              # Utility functions
│   └── tool-helpers.ts # Tool helper functions
└── index.ts            # Main entry point

Documentation

  • TOOLS_IMPLEMENTATION.md - Complete documentation of all 32 tools
  • SKILLS_SYSTEM.md - Skills system documentation and best practices
  • .env.example - Environment configuration template

Credits

  • OpenClaw - Original architecture and patterns (@badlogic)
  • ProjectX - Built-in tools reference implementation (Dart/Flutter)
  • @mariozechner/pi-coding-agent - File operation tools
  • AgentSkills.io - Skills format specification

License

MIT

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and questions:

  • GitHub Issues: Create an issue
  • Documentation: See TOOLS_IMPLEMENTATION.md and SKILLS_SYSTEM.md

CoStar Server Executor - Autonomous AI agents in TypeScript

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 @farazirfan/costar-server-executor

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229