MCPcopy Create free account

hub / github.com/BitterSecurity/Decepticon / functions

Functions10,737 in github.com/BitterSecurity/Decepticon

↓ 14 callersMethodredact
Return ``text`` with every detected target identifier masked.
packages/decepticon/decepticon/telemetry/redact.py:237
↓ 14 callersFunctionreplace
(text: string)
clients/cli/src/components/useComposer.ts:19
↓ 14 callersFunctionscope
( workspace: str, host: str = "sandbox-a", partition: str = "analyst-graph" )
packages/decepticon/tests/unit/reporting/test_sarif_remote.py:153
↓ 14 callersFunctionsigma_to_spl
Translate a parsed Sigma rule dict to a Splunk SPL search string. Supports: ``detection.selection`` + ``detection.condition: selection``; mul
packages/decepticon/decepticon/tools/defense/splunk.py:71
↓ 14 callersMethodstart
(self, workload: str, engagement_id: str | None = None)
packages/decepticon/decepticon/tools/ops/client.py:131
↓ 14 callersMethodstream
(self, input: Any, config: Any = None, stream_mode: str = "values", **kwargs: Any)
packages/decepticon/tests/unit/core/test_subagent_streaming.py:43
↓ 14 callersFunctionstrip_terminal_noise
Strip raw-terminal control noise from a pipe-pane log diff. Removes OSC / CSI / two-char ESC sequences, the ``[DCPTN:…]`` PS1 markers, and st
packages/decepticon/decepticon/sandbox_kernel/tmux.py:71
↓ 14 callersFunctionvalidate
Validate a `curl_cffi` / `requests` response (v2).
packages/decepticon/decepticon/sandbox_web/validators.py:197
↓ 14 callersFunctionverify_ledger
Walk a JSONL ledger and verify the chain + (optional) HMAC.
packages/decepticon/decepticon/middleware/_audit_sink.py:167
↓ 14 callersMethodwrap_tool_call
(self, request, handler)
packages/decepticon/decepticon/middleware/untrusted_output.py:217
↓ 13 callersMethod_create_chat_model
Create a proxied ChatOpenAI instance routed through LiteLLM proxy. Claude Opus 4.7+ rejects ``temperature`` with a 400 invalid_request
packages/decepticon/decepticon/llm/factory.py:1974
↓ 13 callersFunction_hydrate_engagement_state
Copy ``engagement_name``/``workspace_path`` from runnable config into state. Runs in ``before_agent`` so the values are present on state before a
packages/decepticon/decepticon/middleware/engagement.py:210
↓ 13 callersFunction_ids
(findings: list[OAuthFinding])
packages/decepticon/tests/unit/web/test_oauth_detections.py:24
↓ 13 callersFunction_load
Load the engagement KG. Returns ``(KnowledgeGraph, Path)`` for backward compatibility — the ``Path`` is an unused placeholder.
packages/decepticon/decepticon/tools/research/_state.py:258
↓ 13 callersFunction_load
Parse a tool result and unwrap the untrusted-corpus envelope when present.
packages/decepticon/tests/unit/references/test_tools_new.py:51
↓ 13 callersFunction_make_step
( node_id: str = "n1", node_label: str = "NodeA", node_kind: str = "Vulnerability", edge_kind:
packages/decepticon/tests/unit/research/test_chain.py:29
↓ 13 callersMethod_maybe_wrap
(self, request, result)
packages/decepticon/decepticon/middleware/prompt_injection_shield.py:413
↓ 13 callersFunction_middleware
(store: MagicMock | None = None)
packages/decepticon/tests/unit/middleware/test_kg_middleware_unit.py:34
↓ 13 callersFunction_resolve_credentials
Build Credentials from environment variables. Walks ``DECEPTICON_AUTH_PRIORITY`` (comma-separated AuthMethod values; defaults to ``_DEFAULT_A
packages/decepticon/decepticon/llm/factory.py:782
↓ 13 callersFunction_sandbox_with_tracker
Fixture: a sandbox MagicMock whose job tracker is real and whose bash-output / log-path stubs return the given diff (default empty). The midd
packages/decepticon/tests/unit/middleware/test_notifications.py:19
↓ 13 callersFunction_severity_from_string
(value: str | None)
packages/decepticon/decepticon/tools/research/tools.py:110
↓ 13 callersFunction_state
(*messages)
packages/decepticon/tests/unit/middleware/test_notifications.py:15
↓ 13 callersFunction_tool_message
(content: str, tool_call_id: str = "tc-1")
packages/decepticon/tests/unit/middleware/test_untrusted_output.py:31
↓ 13 callersMethodbefore_agent
(self, state: Any, runtime: Any)
packages/decepticon/decepticon/middleware/kg.py:114
↓ 13 callersMethodclose
(self)
packages/decepticon/tests/unit/research/test_tools.py:39
↓ 13 callersFunctioncollect_requested_models
Collect model IDs requested through DECEPTICON_MODEL* env vars. Also picks up the OSS-friendly ``OLLAMA_MODEL`` shortcut so a user can pull a
config/litellm_dynamic_config.py:535
↓ 13 callersMethodcreate
(self, *_args: object, **_kwargs: object)
packages/decepticon/tests/unit/benchmark/test_cve_bench_live.py:52
↓ 13 callersFunctionobjective
(identifier: str, stage: str, owner: str, status: ObjectiveStatus)
packages/decepticon/tests/unit/workflows/opplan_helpers.py:42
↓ 13 callersFunctionread_desktop_policy
()
packages/decepticon/decepticon/desktop_policy.py:99
↓ 13 callersMethodrecord_observations
( self, observations: Iterable[dict[str, Any]], *, engagement: str, cr
packages/decepticon/tests/unit/ad/test_bloodhound_kgstore.py:41
↓ 13 callersFunctionscore
( challenge: CVEBenchChallenge, evidence: dict[str, Any], duration_seconds: float = 0.0, error
benchmark/cve_bench/scorer.py:91
↓ 13 callersFunctionset_active_engagement
Set the active engagement label for the current context.
packages/decepticon-core/decepticon_core/utils/engagement_scope.py:43
↓ 12 callersFunction_build_proxied_llm
Use the factory's protocol and streaming settings for runtime overrides.
packages/decepticon/decepticon/middleware/model_override.py:107
↓ 12 callersFunction_call
Invoke a middleware tool with a synthetic ToolCall envelope. LangChain's ``InjectedToolCallId`` requires the tool to be called via a ``{"type
packages/decepticon/tests/unit/middleware/test_kg_tools_unit.py:24
↓ 12 callersFunction_cfg
(mode: TelemetryMode, endpoint: str | None)
packages/decepticon/tests/unit/telemetry/test_telemetry_sink.py:12
↓ 12 callersFunction_ch
(cve: str = "CVE-2024-2624")
tests/test_cve_bench_scorer.py:9
↓ 12 callersFunction_conops_with
Write a minimal conops.json in tmp_path and return the workspace path.
packages/decepticon/tests/unit/tools/test_defense_push.py:59
↓ 12 callersMethod_enforce
(self, request: Any)
packages/decepticon/decepticon/middleware/budget.py:363
↓ 12 callersFunction_finding
(node_id: str, **props)
packages/decepticon/tests/unit/research/test_sarif_export.py:28
↓ 12 callersFunction_get_backend
()
packages/decepticon/decepticon/sandbox_server/app.py:191
↓ 12 callersMethod_get_manager
( self, session: str, workspace_path: str | None = None, )
packages/decepticon/decepticon/sandbox_kernel/base.py:219
↓ 12 callersMethod_get_request_payload
( self, input_: LanguageModelInput, *, stop: list[str] | None = None, **kwargs: Any )
packages/decepticon/decepticon/llm/factory.py:1016
↓ 12 callersFunction_hash_request
(payload: Any)
packages/decepticon/decepticon/runtime/recording.py:98
↓ 12 callersFunction_install_transport
Patch ``httpx.AsyncClient`` so it routes through ``MockTransport``. Returns the patcher's context manager; ``follow_redirects`` / ``timeout``
packages/decepticon/tests/unit/research/test_tech_detection.py:22
↓ 12 callersFunction_json
(data: Any)
packages/decepticon/decepticon/tools/reversing/tools.py:25
↓ 12 callersFunction_make_finding
( *, check: str = "reentrancy-eth", slither_id: str = "fixedhash001", impact: str = "High",
packages/decepticon/tests/unit/contracts/test_slither_kgstore.py:79
↓ 12 callersFunction_make_store
(driver: Any | None = None)
packages/decepticon/tests/unit/middleware/test_kgstore_unit.py:144
↓ 12 callersFunction_patch_client
Wire every ``httpx.AsyncClient`` in the scanner to a MockTransport.
packages/decepticon/tests/unit/research/test_secret_scanner.py:44
↓ 12 callersMethod_request
( self, method: str, path: str, *, body: bytes | None = None,
packages/decepticon/decepticon/tools/ad/bhce_client.py:207
↓ 12 callersFunction_roe_path
(workspace: Path)
packages/decepticon/tests/unit/test_roe_materialization.py:20
↓ 12 callersFunction_validate_skill_path
Validate a ``load_skill`` path against the format + allowlist rules. Returns an ``[load_skill error] ...`` string when the path is rejected,
packages/decepticon/decepticon/tools/skills.py:116
↓ 12 callersFunction_write_crowdstrike_conops
(tmp_path: Path, crowdstrike_cfg: dict)
packages/decepticon/tests/unit/tools/test_defense_edr.py:54
↓ 12 callersMethodafter_model
(self, state: Any, runtime: Any)
packages/decepticon/decepticon/middleware/kg.py:245
↓ 12 callersFunctionbenchmark_skill_sources
Return extra skill source paths when BENCHMARK_MODE is active.
packages/decepticon/decepticon/agents/_benchmark_mode.py:4
↓ 12 callersFunctionbuild_auth
Build the SDK token verifier + auth settings for the resolved mode. Returns ``(None, None)`` for ``mode == "none"`` so the server stays auth-
packages/decepticon/decepticon/mcp_server/auth.py:157
↓ 12 callersFunctioncandidate
(tmp_path: Path)
packages/decepticon/tests/unit/search_v2/test_search_evidence.py:28
↓ 12 callersFunctionensure_cached
Clone or update the reference repo if missing. When ``run`` is True (default), spawn ``git`` via subprocess; when False, just return the proj
packages/decepticon/decepticon/tools/references/fetch.py:123
↓ 12 callersMethodexec
(self, command: str, *, timeout_sec: int | None = None)
packages/decepticon/tests/unit/benchmark/test_terminal_bench.py:44
↓ 12 callersMethodexecute_read
Run a read transaction. ``engagement`` must be injected into the Cypher by the caller — this method enforces that the scope label is s
packages/decepticon/decepticon/middleware/kg_internal/store.py:189
↓ 12 callersMethodfind
Find nodes matching kind and all provided prop equality constraints.
packages/decepticon-core/decepticon_core/types/kg.py:442
↓ 12 callersFunctionmerge_dynamic_models
Append requested models not already present in a LiteLLM config.
config/litellm_dynamic_config.py:1089
↓ 12 callersMethodread
(self, file_path: str, offset: int = 0, limit: int = 2000)
packages/decepticon/decepticon/middleware/filesystem.py:197
↓ 12 callersMethodread
()
benchmark/terminal_bench/sandbox.py:202
↓ 12 callersFunctionreject
(runtime: ToolRuntime, reason: str)
packages/decepticon/decepticon/middleware/opplan_dispatch.py:106
↓ 12 callersFunctionrender
()
clients/web/src/lib/terminal-activation.test.ts:59
↓ 12 callersFunctionrender_hackerone_markdown
Compose a HackerOne markdown report from a finding (or vulnerability) node. Pulls context from neighbouring nodes: file/line, CVSS, chain.
packages/decepticon/decepticon/tools/reporting/hackerone.py:79
↓ 12 callersFunctionresolve_skill
Resolve a user/agent query against the registry. Resolution order: exact ``/skills/...`` id match → trailing-slug match → fuzzy match (with d
packages/decepticon/decepticon/tools/skills_registry.py:159
↓ 12 callersFunctionscan_solidity_source
Run every pattern against ``source`` and return findings ordered by line number. The same span may trigger multiple rules; that's fine — the a
packages/decepticon/decepticon/tools/contracts/patterns.py:208
↓ 12 callersMethodto_dict
(self)
packages/decepticon/decepticon/tools/ad/gpo.py:25
↓ 11 callersMethodDescription
()
clients/launcher/internal/engagement/picker.go:245
↓ 11 callersFunctionPromptIfNotStarred
PromptIfNotStarred is the only public entry. Safe to call from multiple sites (onboard end + start flow) because the ack-file check makes any subseque
clients/launcher/internal/starprompt/starprompt.go:65
↓ 11 callersFunction_close
(mw: RecordingMiddleware)
packages/decepticon/tests/unit/runtime/test_recording_internals.py:58
↓ 11 callersFunction_extract_output
Extract a foreground command's output, exit code, and cwd from the pane. ``since_count`` is the number of PS1 markers present in the *baseline*
packages/decepticon/decepticon/sandbox_kernel/tmux.py:1147
↓ 11 callersFunction_fake_browser_chain
(pages: list[Any] | None = None)
packages/decepticon/tests/unit/tools/test_browser.py:58
↓ 11 callersFunction_gpo_node
(label: str, **props: object)
packages/decepticon/tests/unit/ad/test_ad_tools.py:43
↓ 11 callersFunction_is_valid_target
(token: str)
packages/decepticon/decepticon/middleware/_command_targets.py:145
↓ 11 callersFunction_original_chat_model
A stand-in for the LLM the agent was constructed with. Only ``temperature`` is read by the override path; the other fields must be present so
packages/decepticon/tests/unit/middleware/test_model_override.py:57
↓ 11 callersFunction_payload
(*findings: dict[str, Any])
packages/decepticon/tests/unit/contracts/test_slither_kgstore.py:120
↓ 11 callersFunction_resolve_llm_timeout_seconds
Resolve the per-call LLM request timeout. Precedence: ``DECEPTICON_LLM_TIMEOUT_SECONDS`` env > ``DECEPTICON_LLM__TIMEOUT`` env (the pydantic-
packages/decepticon/decepticon/llm/factory.py:193
↓ 11 callersFunction_response
(request_id: str, *, status: int = 200)
packages/decepticon/tests/unit/web/test_http_branches.py:37
↓ 11 callersFunction_track_passive_read
Record a passive read; return [STALE] hint when threshold tripped.
packages/decepticon/decepticon/tools/bash/bash.py:134
↓ 11 callersFunction_truncate
Truncate large outputs preserving head + tail for context efficiency. Observation masking: large tool outputs are the #1 context consumer. Ke
packages/decepticon/decepticon/sandbox_kernel/tmux.py:1191
↓ 11 callersFunctionapply_egress
Compile + load the egress ruleset inside the sandbox. When ``enabled`` is False (the operator opted out via ``DECEPTICON_EGRESS_DISABLE``), n
packages/decepticon/decepticon/sandbox_kernel/egress.py:352
↓ 11 callersMethodcancel
(self, thread_id: str, run_id: str)
packages/decepticon/tests/unit/mcp_server/test_thread_access.py:46
↓ 11 callersFunctioncommitted
(registry: ArtifactRegistry)
packages/decepticon/tests/unit/artifacts/test_registry.py:53
↓ 11 callersMethodexecute_async
Release waiter ownership on cancellation; keep the shell command running.
packages/decepticon/decepticon/sandbox_kernel/tmux.py:683
↓ 11 callersMethodflush
Force a synchronous write of the cache to disk.
packages/decepticon/decepticon/tools/research/cve.py:191
↓ 11 callersMethodfrom_dict
(cls, data: dict[str, Any] | None)
packages/decepticon-core/decepticon_core/types/roe.py:88
↓ 11 callersFunctionghidra_recon_script
Return a Ghidra headless script body targeting ``binary``.
packages/decepticon/decepticon/tools/reversing/scripts.py:72
↓ 11 callersFunctioninitial
()
packages/decepticon/tests/unit/artifacts/test_registry.py:49
↓ 11 callersFunctioninstall
(t *testing.T, s *stubs)
clients/launcher/internal/starprompt/starprompt_test.go:36
↓ 11 callersMethodload
(self)
packages/decepticon/tests/unit/test_plugin_loader.py:84
↓ 11 callersFunctionnewTestServer
(t *testing.T)
clients/launcher/internal/infracontrol/server_test.go:53
↓ 11 callersMethodpoll_completion
Check whether the background job's native command has completed. Updates the tracker in place; returns the job (or None if not tracked).
packages/decepticon/decepticon/sandbox_kernel/base.py:398
↓ 11 callersFunctionreachability
Probe ``base_url/api/tags``. Pre-flight rejects loopback hosts — from inside a container they're never the host running Ollama. ``auth_token`
config/ollama_probe.py:246
↓ 11 callersMethodread_session_log_diff
Return new bytes appended to <workspace>/.sessions/<session>.log since the previous call (or the whole file on first call). Per-proce
packages/decepticon/decepticon/sandbox_kernel/base.py:272
↓ 11 callersMethodregister
Register a role (idempotent on identical parameters). Re-registering with different parameters raises ``ValueError`` — callers should
packages/decepticon-core/decepticon_core/registry/roles.py:59
↓ 11 callersFunctionreset_active_engagement
Reset the active engagement to the value before ``set_active_engagement``.
packages/decepticon-core/decepticon_core/utils/engagement_scope.py:52
↓ 11 callersFunctionstate_for
(rows: list[Objective])
packages/decepticon/tests/unit/workflows/opplan_helpers.py:58
↓ 11 callersMethodto_dict
(self)
packages/decepticon/decepticon/tools/references/oneliners.py:46
← previousnext →201–300 of 10,737, ranked by callers