AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Joern Slice

skill-batteryshark-rekit-joern-slice · by batteryshark

Build a bounded code property graph and focused data-flow or usage slice with pinned Joern. Use when reverse engineering or security analysis needs interprocedural source context beyond syntax trees. Static and offline; never executes target code.

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-batteryshark-rekit-joern-slice

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-batteryshark-rekit-joern-slice)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Joern Slice? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Joern Code Slicer

Use Joern after syntax-level inspection has identified a function, API, or behavior worth deeper analysis. It builds a code property graph (CPG), asks Joern for a bounded slice, and emits both the raw graph and a stable Rekit evidence document. This is a deeper layer than Tree-sitter, not a replacement for broad multi-language scanning.

Install

rekit install joern-slice
rekit doctor joern-slice

The explicit install step pulls the official image by immutable multi-platform digest. Analysis never pulls and always runs with Docker networking disabled.

Usage

rekit run joern-slice ./source ./out --language pythonsrc
rekit run joern-slice ./source ./out --language jssrc --mode data-flow \
  --sink-filter '.*(?:eval|exec).*'
rekit run joern-slice ./source ./out --language c --mode usages

behavior-flow is the default. Its declarative profile selects source and sink patterns without accepting executable Joern or Scala supplied by the caller. Pass a versioned profile with --profile; its schema is in assets/profile.schema.json. data-flow exposes Joern's bounded graph directly, while usages records method and type usages. Use --reuse-cpg when iterating on profiles against an already generated CPG from the same target and frontend. Reuse requires its sibling evidence.json and verifies the target manifest, frontend, and immutable image before accepting the CPG.

Every run publishes cpg.bin, raw-slice.json, and evidence.json atomically. The evidence records the target manifest digest, frontend, profile digest, image identity, coverage, graph, paths, findings, resource limits, and phase timing. Joern frontends vary: some graphs contain an explicit edge to the sink, while others end at the value selected by the sink query. Rekit labels the latter slice-selected-by-sink; it does not fabricate a reaching-definition edge.

Scope and safety

One run analyzes one frontend and one CPG. Mixed-language repositories require one run per relevant language; the results do not imply cross-language data flow. The default input bounds are 10,000 regular files and 512 MiB. Symlinks are excluded and reported. The target is copied into a temporary read-only mount. Target code is parsed but never executed.

The container uses a read-only root filesystem, no network, no capabilities, no privilege escalation, and CPU, memory, process, temporary-storage, and wall-clock limits. /tmp is private but executable because Joern's trusted zstd JNI library is loaded from there. Only the temporary analysis output is writable.

Treat an empty, unresolved, or excluded result as bounded evidence, not proof that a behavior is absent. Use the reported coverage and unresolved fields when composing a reverse-engineering conclusion.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.