Skip to main content
Glama

pentest_ctf_checksec

Checks a binary for RELRO, canary, NX, PIE, and stripped mitigations using checksec or readelf, enabling offline CTF and pentest analysis.

Instructions

Binary mitigations (RELRO, canary, NX, PIE, stripped) via checksec or readelf. Offline.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "pentest_ctf_checksec"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

B3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden; it does disclose that analysis is local/offline and that the tool falls back between checksec and readelf, which is genuine behavioral context. It does not state that the operation is read-only, whether the binary is executed, or how results are reported, leaving meaningful gaps for a tool operating on untrusted binaries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two telegraphic fragments with zero filler, and the substantive content (what mitigations are checked) leads. It is efficient, though the fragment style omits a verb and could be read as a label rather than a description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter inspection tool with no annotations and no output schema, the definition covers what is inspected and that it is offline, which is the core. It still leaves the agent guessing about input requirements and the shape of the returned mitigation statuses.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single `path` parameter, and the description never mentions it. 'Offline' weakly implies a local filesystem path rather than a remote target, but the description does not confirm this, say whether it must be executable or an ELF, or address relative vs absolute paths.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the specific resource and enumerates exactly what is reported (RELRO, canary, NX, PIE, stripped), which makes the tool's scope unambiguous. The verb is only implied ('check'), but the resource plus the enumeration is distinctive enough to separate it from siblings like binwalk or strings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No statement of when to reach for this versus pentest_ctf_file_info, pentest_ctf_strings, or pentest_ctf_binwalk. The word 'Offline' is the only situational cue, indicating the target is a local file rather than a remote host, but there are no prerequisites, exclusions, or alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools