MCPcopy Create free account

hub / github.com/BitterSecurity/Decepticon / functions

Functions10,737 in github.com/BitterSecurity/Decepticon

↓ 11 callersMethodto_dict
(self)
packages/decepticon/tests/unit/references/test_tools_wrappers.py:105
↓ 11 callersFunctionupdate_draft
( registry: ArtifactRegistry, update: DraftUpdate, context: ActorContext )
packages/decepticon/decepticon/artifacts/registry.py:127
↓ 11 callersFunctionwithTempHome
withTempHome redirects config.DecepticonHome() output via env so each test owns its own ack-file directory.
clients/launcher/internal/starprompt/starprompt_test.go:12
↓ 11 callersFunctionwith_retry_on_401
Call ``send(force_refresh: bool)`` up to ``max_attempts`` times. Handlers fetch their token via a closure that respects ``force_refresh``. Th
config/oauth_token_store.py:319
↓ 11 callersMethodwrap_model_call
(self, request: Any, handler: Any)
packages/decepticon/tests/unit/middleware/test_summarization_fallback.py:64
↓ 11 callersFunctionwriteDesktopRuntimeOverlay
(home string, selected *desktopModelRuntime)
clients/launcher/cmd/desktop_runtime.go:159
↓ 11 callersFunctionwrite_json_atomic
Write JSON to ``path`` atomically (temp + rename). Returns False on failure. Many credential mounts are bind-mounted from the host. A rename with
config/oauth_token_store.py:74
↓ 10 callersFunction_acl_edge
(src: Node, dst: Node, right: str)
packages/decepticon/tests/unit/ad/test_ad_tools.py:51
↓ 10 callersFunction_clear_proxy_and_decepticon_env
(monkeypatch: pytest.MonkeyPatch)
packages/decepticon/tests/unit/tools/bash/test_proxy_env.py:33
↓ 10 callersFunction_configure_kg
(monkeypatch, tmp_path)
packages/decepticon/tests/unit/research/test_kg_ingest_kali.py:50
↓ 10 callersMethod_current
(self)
packages/decepticon/decepticon/middleware/filesystem.py:413
↓ 10 callersFunction_detect_format
(header: bytes)
packages/decepticon/decepticon/tools/reversing/binary.py:102
↓ 10 callersFunction_detect_injections
Run every catalog pattern over ``text`` and return ``(category, severity, sample)`` triples.
packages/decepticon/decepticon/middleware/prompt_injection_shield.py:169
↓ 10 callersFunction_events_path
(workspace: Path, engagement: str)
packages/decepticon/tests/unit/middleware/test_event_logging.py:51
↓ 10 callersFunction_expected_flag
Deterministic per-challenge flag value, seeded for stable test runs. Matches the XBOWProvider-style ``FLAG{<64-char-hex>}`` shape so the harn
benchmark/providers/mhbench.py:1104
↓ 10 callersFunction_fake_page
( *, url: str = "https://target/", title: str = "target", content_html: str = "<html></html>",
packages/decepticon/tests/unit/tools/test_browser.py:36
↓ 10 callersFunction_fake_response
Patch the HTTP call to echo deterministic vectors and record calls.
packages/decepticon/tests/unit/skillogy/test_embeddings.py:98
↓ 10 callersFunction_format_skill_body
Build the header + body sections for a loaded skill file. Strips frontmatter, derives the base-directory header (skill name + description), a
packages/decepticon/decepticon/tools/skills.py:197
↓ 10 callersFunction_interpret_exit_code
Convert exit code to human-readable message for agent context.
packages/decepticon/decepticon/sandbox_kernel/tmux.py:265
↓ 10 callersFunction_lucene_query
Escape a free-text query into a Lucene term expression. Every reserved character is escaped to its literal form, so a query keeps the tokens
packages/decepticon/decepticon/skillogy/server/neo4j_backend.py:68
↓ 10 callersFunction_make_elf32
Build a minimal but parseable ELF32 header (no program headers).
packages/decepticon/tests/unit/reversing/test_reversing_internals.py:41
↓ 10 callersFunction_mirror_key
(session: str, workspace_path: str | None)
packages/decepticon/decepticon/backends/http_sandbox.py:98
↓ 10 callersFunction_obj_dict
(obj_id: str, **overrides: Any)
packages/decepticon/tests/unit/middleware/test_opplan_inject_format.py:33
↓ 10 callersFunction_read_override
Pull the override id out of runtime context or input state. Two shapes are honoured, in priority order: 1. ``model_overrides`` — a ``{role
packages/decepticon/decepticon/middleware/model_override.py:56
↓ 10 callersMethod_real
(self, path: str | None)
packages/decepticon/decepticon/middleware/filesystem.py:102
↓ 10 callersFunction_resolve_external_topology
Read optional ``external_topology`` section from MHBench config.json. Returns ``None`` when the section is absent (= automated mode). Raises
benchmark/providers/mhbench.py:1161
↓ 10 callersFunction_row
A formatter row dict (``_format_opplan_for_agent`` consumes dicts).
packages/decepticon/tests/unit/tools/test_opplan_tool.py:60
↓ 10 callersFunction_select_flag_target
Pick the primary flag-target host from a topology's victim list. ``selector`` semantics: * ``"deepest_named"`` — return the victim whose ``n
benchmark/providers/mhbench.py:1189
↓ 10 callersFunction_severity_from_score
Map CVSS-like 0..10 score to qualitative severity.
packages/decepticon/decepticon/tools/research/sarif.py:49
↓ 10 callersFunction_spn_targets_dc
Check if a constrained delegation SPN targets a DC-class service.
packages/decepticon/decepticon/tools/ad/delegation.py:47
↓ 10 callersFunction_strip_frontmatter
Strip a leading YAML frontmatter block (``---\\n...\\n---``) from text. Returns ``(body, frontmatter_dict)``. Only flat ``key: value`` pairs are
packages/decepticon/decepticon/tools/skills.py:42
↓ 10 callersFunction_valid_external_section
()
packages/decepticon/tests/unit/benchmark/test_mhbench_provider.py:154
↓ 10 callersFunction_write_spec
(tmp_path: Path)
packages/decepticon/tests/unit/benchmark/test_cybergym_provider.py:22
↓ 10 callersFunctionanalyze_iam_policy
Return a list of privilege escalation findings for an IAM policy.
packages/decepticon/decepticon/tools/cloud/aws.py:119
↓ 10 callersFunctionapply_migrations
Apply pending ``V*.cypher`` migrations in filename order. Returns the list of newly-applied migration names (excluding ones that were already
packages/decepticon/decepticon/middleware/kg_internal/migration_runner.py:74
↓ 10 callersMethodbaseArgs
baseArgs returns the common compose arguments for the detected runtime. For Docker this is ["compose", "-f", ...]; for Podman 4.4+ it's the same shape
clients/launcher/internal/compose/compose.go:95
↓ 10 callersMethodbefore_model
(self, state, runtime)
packages/decepticon/decepticon/middleware/notifications.py:348
↓ 10 callersMethoddefault
(cls)
packages/decepticon/decepticon/workflows/catalog.py:33
↓ 10 callersMethodedit
( self, file_path: str, old_string: str, new_string: str, replace_all:
packages/decepticon/decepticon/middleware/filesystem.py:240
↓ 10 callersFunctionevent_to_tier_a
Map one event-log record to a Tier-A event, or ``None`` if not forwardable. ``record`` is the on-disk shape ``{ts, type, agent?, payload}``. Only
packages/decepticon/decepticon/telemetry/sanitizer.py:90
↓ 10 callersMethodformat
(self, record: logging.LogRecord)
packages/decepticon-core/decepticon_core/utils/logging.py:56
↓ 10 callersMethodgenerate_query
Emit a minimal-but-valid query/mutation document for a field. Arguments are stubbed with safe placeholders (``1`` for Int IDs, ``"tes
packages/decepticon/decepticon/tools/web/graphql.py:205
↓ 10 callersMethodget
(self, session: str, key: str | None = None)
packages/decepticon/decepticon/sandbox_kernel/jobs.py:72
↓ 10 callersMethodmux
()
clients/launcher/internal/infracontrol/server.go:38
↓ 10 callersFunctionplan_chains
Enumerate and rank attack chains using Neo4j APOC dijkstra. Uses ``apoc.algo.dijkstra`` for weighted shortest path from each Entrypoint to ea
packages/decepticon/decepticon/tools/research/chain.py:130
↓ 10 callersFunctionr2_recon_script
Return a radare2 script body; feed via ``r2 -q -i <script> <binary>``.
packages/decepticon/decepticon/tools/reversing/scripts.py:77
↓ 10 callersMethodrecord
Sanitize and enqueue one event. No-op when disabled; never raises. ``session_id`` is the per-engagement hash (from :func:`session_id_for`).
packages/decepticon/decepticon/telemetry/sink.py:82
↓ 10 callersMethodrecord_observations
Atomic batch write of node + outgoing-edge observations. Every node and edge gets provenance auto-injected (engagement, firstseen, la
packages/decepticon/decepticon/middleware/kg_internal/store.py:311
↓ 10 callersMethodrun_challenge
(self, challenge: Challenge)
benchmark/harness.py:514
↓ 10 callersFunctionscan_tier_c
Return ``(klass, path)`` for the first forbidden hit, else ``None``. The matched VALUE is never returned — surfacing it would itself leak.
packages/decepticon/decepticon/telemetry/sanitizer.py:198
↓ 10 callersFunctionsetAssistantOverride
(id: string)
clients/cli/src/commands/assistantOverride.ts:13
↓ 10 callersMethodtext
()
clients/cli/src/utils/liveMessageText.ts:18
↓ 10 callersMethodto_dict
(self)
packages/decepticon/decepticon/tools/reversing/rop.py:30
↓ 10 callersMethodto_markdown
(self)
packages/decepticon/decepticon/tools/reporting/hackerone.py:32
↓ 10 callersFunctionvalidate_workflow_plan
Prevent replanning from invalidating proof for already active work.
packages/decepticon/decepticon/middleware/workflow_opplan.py:210
↓ 10 callersMethodwrap_tool_call
(self, request: Any, handler: Any)
packages/decepticon/decepticon/middleware/kg.py:195
↓ 9 callersMethodTitle
()
clients/launcher/internal/engagement/picker.go:235
↓ 9 callersMethod_active_tab
(self)
packages/decepticon/decepticon/tools/browser/tools.py:165
↓ 9 callersFunction_configure_kg
(monkeypatch: pytest.MonkeyPatch, tmp_path: Path)
packages/decepticon/tests/unit/research/test_tools.py:58
↓ 9 callersFunction_ensure_host_node
( graph: KnowledgeGraph, *, label: str, key: str, **props: Any, )
packages/decepticon/decepticon/tools/research/tools.py:248
↓ 9 callersFunction_fake_sandbox
()
packages/decepticon/tests/unit/tools/bash/test_bash_output.py:22
↓ 9 callersMethod_forget_cached_state
(self)
packages/decepticon/decepticon/sandbox_kernel/tmux.py:367
↓ 9 callersFunction_is_enabled
()
packages/decepticon/decepticon/middleware/skillogy.py:205
↓ 9 callersFunction_is_real_key
Validate that ``value`` looks like a real provider API key. Layers, in order: 1. Strip whitespace; reject empty. 2. Reject anything s
packages/decepticon/decepticon/llm/factory.py:559
↓ 9 callersFunction_json
(data: Any)
packages/decepticon/decepticon/tools/ad/tools.py:58
↓ 9 callersFunction_list_dir_via_backend
List ``.md`` files under ``dir_path`` via backend, sorted. Best-effort: returns an empty list on any backend failure rather than raising, so
packages/decepticon/decepticon/tools/skills.py:90
↓ 9 callersFunction_make_network_request
(tool_name: str, args: dict, state: dict | None = None)
packages/decepticon/tests/unit/middleware/test_roe.py:391
↓ 9 callersMethod_make_tool
(self, raw_content: str, sources: list[str] | None = None)
packages/decepticon/tests/unit/tools/test_skills_loader.py:338
↓ 9 callersFunction_model_request
(content: str = "hi", model_name: str = "m1")
packages/decepticon/tests/unit/runtime/test_recording_internals.py:42
↓ 9 callersFunction_parse_nvd
Extract CVSS, CWE, summary, publication from NVD response.
packages/decepticon/decepticon/tools/research/cve.py:272
↓ 9 callersFunction_provenance
()
packages/decepticon/tests/unit/benchmark/test_scorer.py:26
↓ 9 callersFunction_pyfind
Pure-Python fallback when rg/grep aren't installed.
packages/decepticon/decepticon/tools/references/fetch.py:241
↓ 9 callersFunction_resolve_ssh_key_path
Read ``openstack_config.ssh_key_path`` from the MHBench config.json.
benchmark/providers/mhbench.py:1114
↓ 9 callersFunction_rich_graph
Graph with vulns, chains, CVEs for tool-level integration tests.
packages/decepticon/tests/unit/reporting/test_reporting_tools_and_executive.py:77
↓ 9 callersFunction_run_driver
(script: Path, *, timeout: float = 30.0)
packages/decepticon/tests/unit/runtime/test_shutdown.py:85
↓ 9 callersFunction_save
Persist a KnowledgeGraph to the engagement KG via ``record_observations`` + per-edge ``MERGE``. ``path`` is ignored.
packages/decepticon/decepticon/tools/research/_state.py:264
↓ 9 callersFunction_spec
Construct a SubAgentSpec for tests with a stub factory.
packages/decepticon/tests/unit/test_plugin_loader.py:157
↓ 9 callersMethod_times
(self)
packages/decepticon/tests/unit/benchmark/test_scorer.py:45
↓ 9 callersFunction_tool_request
(tool_name: str = "bash", args: dict | None = None)
packages/decepticon/tests/unit/runtime/test_recording_internals.py:51
↓ 9 callersFunction_top_chains
(graph: KnowledgeGraph, limit: int = 5)
packages/decepticon/decepticon/tools/reporting/executive.py:26
↓ 9 callersFunctionackExists
(t *testing.T, home string)
clients/launcher/internal/starprompt/starprompt_test.go:72
↓ 9 callersFunctionartifact
(root: Path, path: str, content: str = "captured output")
packages/decepticon/tests/unit/reporting/test_evidence_contract.py:18
↓ 9 callersFunctionbuild_opplan_tools
Create OPPLAN tools with InjectedState for direct state access. Tool bodies execute CRUD logic directly, returning Command for state mutation
packages/decepticon/decepticon/tools/opplan.py:610
↓ 9 callersFunctionbuild_server
Construct the Decepticon engagement MCP server with all tools registered. ``client`` injects a pre-built LangGraph SDK client (tests/embedding);
packages/decepticon/decepticon/mcp_server/server.py:39
↓ 9 callersFunctioncandidateProbeURLs
candidateProbeURLs returns the URLs the launcher should probe to verify host-side Ollama reachability. The returned list is ordered best-first so the
clients/launcher/cmd/start.go:647
↓ 9 callersMethodcomposeEnv
composeEnv returns the parent environment with DECEPTICON_VERSION pinned from the .version file plus any runtime-derived env (DOCKER_HOST for Podman,
clients/launcher/internal/compose/compose.go:168
↓ 9 callersFunctioncompute_edge_cost
Compute the traversal cost for an attack edge. This should be called at ingestion time and stored as the ``cost`` property on relationships s
packages/decepticon/decepticon/tools/research/chain.py:110
↓ 9 callersMethoddump
(self)
packages/decepticon/decepticon/tools/web/http.py:138
↓ 9 callersMethodemit
Release one event to the consumer. Resolves after the consumer has pulled it.
clients/cli/src/hooks/__fixtures__/mockStream.ts:27
↓ 9 callersFunctionfind_violations
Return procedure names in ``cypher`` that violate the allowlist.
packages/decepticon/decepticon/tools/research/_apoc_safety.py:123
↓ 9 callersFunctionfinding
(**overrides)
packages/decepticon/tests/unit/reporting/test_finding_quality.py:34
↓ 9 callersMethodfrom_graph
(graph: Any)
packages/decepticon/decepticon/runtime/cart.py:93
↓ 9 callersFunctiongetModelOverride
()
clients/cli/src/commands/modelOverride.ts:22
↓ 9 callersMethodget_by_id
(self, request_id: str)
packages/decepticon/decepticon/tools/web/http.py:114
↓ 9 callersMethodgrep
( self, pattern: str, path: str | None = None, glob: str | None = None,
packages/decepticon/decepticon/middleware/filesystem.py:260
↓ 9 callersFunctioningest
Dispatch to the adapter for ``scanner_kind``. Returns a dict whose shape is ``{"scanner", "path", **adapter_result}`` on success or ``{"e
packages/decepticon/decepticon/middleware/kg_internal/ingest.py:83
↓ 9 callersFunctionis_timestamp_expired
Generic expiry check for non-JWT formats. Accepts seconds or milliseconds (auto-detected when value > 1e12). Returns ``False`` when ``expires
config/oauth_token_store.py:251
↓ 9 callersMethodload
Return the singleton, building it on first call. Walks every Decepticon entry-point group via ``importlib.metadata.entry_points`` and
packages/decepticon-core/decepticon_core/registry/plugins.py:96
↓ 9 callersMethodload_graph
(self)
packages/decepticon/tests/unit/research/test_kg_ingest_kali.py:18
↓ 9 callersMethodlookup
(self, cve_id: str)
packages/decepticon/decepticon/tools/references/cve_poc_index.py:66
← previousnext →301–400 of 10,737, ranked by callers