MCPcopy Create free account

hub / github.com/BitterSecurity/Decepticon / functions

Functions10,737 in github.com/BitterSecurity/Decepticon

↓ 6 callersFunction_extract_yara_metadata
Return a dict of ``meta`` key=value pairs from a YARA rule body.
packages/decepticon/decepticon/tools/defense/edr.py:31
↓ 6 callersFunction_fake_sandbox
()
packages/decepticon/tests/unit/tools/bash/test_passive_read_stale_guard.py:26
↓ 6 callersFunction_file_response
(path: str, content: bytes)
packages/decepticon/tests/unit/backends/test_session_log.py:193
↓ 6 callersFunction_format_ts
(ts: float)
packages/decepticon/decepticon/cli/export_transcript.py:64
↓ 6 callersFunction_graph_with_chains
()
packages/decepticon/tests/unit/reporting/test_reporting_tools_and_executive.py:46
↓ 6 callersFunction_havoc_url
()
packages/decepticon/decepticon/tools/c2/havoc.py:34
↓ 6 callersFunction_havoc_verify
TLS verification for Havoc teamserver. Havoc generates self-signed certificates by default. Verification is controlled via ``HAVOC_VERIFY_TLS
packages/decepticon/decepticon/tools/c2/havoc.py:40
↓ 6 callersFunction_hm
()
packages/decepticon/tests/unit/core/test_subagent_streaming_guard.py:89
↓ 6 callersFunction_ids
(violations: list[Violation])
packages/decepticon/tests/unit/skill_audit/test_rules.py:26
↓ 6 callersMethod_inject
(self, request)
packages/decepticon/decepticon/middleware/skillogy.py:502
↓ 6 callersFunction_install_routes
(monkeypatch: pytest.MonkeyPatch, routes: dict[str, _FakeResponse])
packages/decepticon/tests/unit/benchmark/test_cybergym_provider.py:69
↓ 6 callersFunction_invoke
(workspace: Path, source: Path, *flags: str)
packages/decepticon/tests/unit/core/test_provision_roe.py:14
↓ 6 callersFunction_is_dc
(node_props: dict[str, Any])
packages/decepticon/decepticon/tools/ad/delegation.py:39
↓ 6 callersFunction_is_sensitive_ou
Check if an OU label suggests Domain Controllers or domain root.
packages/decepticon/decepticon/tools/ad/gpo.py:40
↓ 6 callersFunction_is_trusted_internal_tool
Return True when ``tool_name`` is a framework/internal tool whose output is not attacker-influenceable and must therefore be left unwrapped.
packages/decepticon/decepticon/middleware/prompt_injection_shield.py:358
↓ 6 callersFunction_json
(data: Any)
packages/decepticon/decepticon/tools/cloud/tools.py:20
↓ 6 callersFunction_json
(data: Any)
packages/decepticon/decepticon/tools/orchestration/agent_graph.py:20
↓ 6 callersFunction_json
(data: Any)
packages/decepticon/decepticon/tools/defense/tools.py:35
↓ 6 callersFunction_json
(data: Any)
packages/decepticon/decepticon/tools/contracts/tools.py:24
↓ 6 callersFunction_last_text
(state: Any)
packages/decepticon/tests/unit/core/test_subagent_streaming_guard.py:85
↓ 6 callersFunction_ledger
(path: Path, *, hmac_key: bytes | None = None)
packages/decepticon/tests/unit/cli/test_audit.py:14
↓ 6 callersFunction_limit
(value: int)
packages/decepticon/decepticon/mcp_server/tools_blue.py:13
↓ 6 callersFunction_llamacpp_local_configured
Return True when the user has wired up local llama.cpp llama-server. Either ``LLAMACPP_API_BASE`` (preferred — explicit endpoint, e.g. ``http
packages/decepticon/decepticon/llm/factory.py:505
↓ 6 callersFunction_load_generated_topologies
Discover MHBench's 30 procedurally-generated topologies as TopologySpecs. Upstream ships each generated topology as a JSON file under ``src/e
benchmark/providers/mhbench.py:184
↓ 6 callersFunction_load_profiles
Load profiles with graceful fallback. Never raises. On any failure (PyYAML missing, file missing, parse error, unexpected shape) it returns a
packages/decepticon/decepticon/sandbox_web/waf_detector.py:65
↓ 6 callersFunction_loader_counter
()
packages/decepticon/tests/unit/llm/test_oauth_token_store.py:167
↓ 6 callersFunction_make_load_skill_tool
(backend, allowed_path_prefixes: list[str] | None = None)
packages/decepticon/decepticon/middleware/skillogy.py:238
↓ 6 callersFunction_match_signals
Return the subset of patterns whose regex matches the blob.
packages/decepticon/decepticon/tools/research/poc.py:240
↓ 6 callersFunction_new_findings
()
packages/decepticon/decepticon/tools/research/osint.py:115
↓ 6 callersFunction_objective
( obj_id: str, title: str, *, parent_id: str | None = None, priority: int = 1, status:
packages/decepticon/tests/unit/middleware/test_opplan_hierarchy.py:20
↓ 6 callersFunction_openai_compat_gateway_configured
Return True when the generic OpenAI-compatible gateway is opted in. Requires ``OPENAI_COMPAT_GATEWAY_API_BASE`` (URL), a real ``OPENAI_COMPAT
packages/decepticon/decepticon/llm/factory.py:532
↓ 6 callersFunction_opener_raising
(exc: BaseException)
packages/decepticon/tests/unit/llm/test_ollama_probe.py:76
↓ 6 callersFunction_opener_returning
Return an opener that yields ``response`` regardless of input.
packages/decepticon/tests/unit/llm/test_ollama_probe.py:66
↓ 6 callersMethod_pace_wait_seconds
Seconds to sleep before a gated call to honour ``min_inter_request_delay_ms``. The first runtime request-cadence control (opplan only prints
packages/decepticon/decepticon/middleware/roe.py:542
↓ 6 callersFunction_parse_dependencies
(path: Path)
packages/decepticon/decepticon/tools/research/tools.py:402
↓ 6 callersFunction_parse_props
(props_json: str)
packages/decepticon/decepticon/tools/research/tools.py:86
↓ 6 callersMethod_placeholder
(self, value: str, ptype: str)
packages/decepticon/decepticon/telemetry/redact.py:227
↓ 6 callersFunction_rec
(name: str, path: str, **extra: Any)
packages/decepticon/tests/unit/skillogy/test_find_skill_fusion.py:16
↓ 6 callersFunction_rekey_model
Rebuild ``original`` against the LiteLLM proxy, authenticating with ``api_key`` instead of the env master key. Rebuild rather than ``model_co
packages/decepticon/decepticon/middleware/proxy_key_override.py:103
↓ 6 callersFunction_rendered_compose
Return the post-interpolation compose document as a dict. Uses ``--profiles`` so that profile-gated services (c2-sliver, rea-mcp, cli) are pr
tests/test_compose_network_isolation.py:107
↓ 6 callersFunction_resolve_allowed_path_prefixes
Resolve the path-prefix ACL the middleware should enforce. Priority order, mirroring how the legacy ``SkillsMiddleware`` ``sources`` argument
packages/decepticon/decepticon/middleware/skillogy.py:568
↓ 6 callersFunction_resolve_max_tokens
Output-token cap for a factory-created model. ``DECEPTICON_LLM_MAX_TOKENS`` (explicit override) wins when set to a positive int, followed by
packages/decepticon/decepticon/llm/factory.py:158
↓ 6 callersFunction_retry_on_connection_error
Retry a function on httpx connection errors with capped exponential backoff. Only ``ConnectError`` / ``ConnectTimeout`` are retried — both mean t
packages/decepticon/decepticon/backends/http_sandbox.py:111
↓ 6 callersMethod_returned
( self, request: ToolCallRequest, result: ToolMessage | Command[str] )
packages/decepticon/decepticon/middleware/search_runtime.py:385
↓ 6 callersFunction_shell_export_command
Render ``env`` as a single ``export`` line safe to send into a shell. The variable name is validated against :data:`_VALID_ENV_NAME`; the value
packages/decepticon/decepticon/sandbox_kernel/tmux.py:209
↓ 6 callersFunction_skill_body
(name: str = "sql-injection")
packages/decepticon/tests/unit/tools/test_skills.py:38
↓ 6 callersFunction_split_cypher_statements
Split a multi-statement Cypher file into individual statements. Cypher statements are separated by ``;``. Empty statements (e.g. trailing sem
packages/decepticon/decepticon/middleware/kg_internal/migration_runner.py:50
↓ 6 callersMethod_tag_request
Attach scope tags to the outbound completion via ``metadata.tags``. The LiteLLM proxy records these tags on every spend-log row, which
packages/decepticon/decepticon/middleware/budget.py:371
↓ 6 callersFunction_to_text
(content: Any)
packages/decepticon/decepticon/middleware/untrusted_output.py:302
↓ 6 callersFunction_validate_targets
(targets: list[str])
packages/decepticon/decepticon/cli/scan.py:165
↓ 6 callersMethod_virtual
(self, path: str)
packages/decepticon/decepticon/middleware/filesystem.py:128
↓ 6 callersFunction_workspace_path_from_config
(config: RunnableConfig | None)
packages/decepticon/decepticon/tools/bash/bash.py:318
↓ 6 callersMethodall_jobs
(self)
packages/decepticon/decepticon/sandbox_kernel/jobs.py:95
↓ 6 callersMethodallows
Allow the primary specialist and catalog-declared alternatives.
packages/decepticon/decepticon/workflows/models.py:35
↓ 6 callersMethodappend
(self, events: Sequence[OcsfEvent])
packages/decepticon-core/tests/test_event_store_contract.py:31
↓ 6 callersFunctionapply_claude4_compat
Transform ``prompt`` for Claude 4.x compatibility. No-op for non-Claude-4 models or when ``DECEPTICON_CLAUDE4_COMPAT`` is set to ``0`` / ``fa
packages/decepticon/decepticon/agents/prompts/claude4_compat.py:166
↓ 6 callersMethodawrap_model_call
(self, request: Any, handler: Any)
packages/decepticon/tests/unit/middleware/test_summarization_fallback.py:71
↓ 6 callersMethodbase_score
Compute CVSS v3.1 base score per spec. Reference: https://www.first.org/cvss/v3.1/specification-document
packages/decepticon/decepticon/tools/research/poc.py:111
↓ 6 callersMethodbind
(self, backend: EngagementFilesystemBackend)
packages/decepticon/decepticon/middleware/filesystem.py:406
↓ 6 callersFunctionbuild_finding_quality_tool
Bind the structural checker to the active engagement's filesystem.
packages/decepticon/decepticon/tools/reporting/finding_quality.py:130
↓ 6 callersFunctioncall_with_timeout
Wrap ``coro`` in :func:`asyncio.wait_for` and re-raise as :class:`LLMTimeoutError`. The translation preserves the original ``asyncio.TimeoutError
packages/decepticon/decepticon/llm/factory.py:252
↓ 6 callersFunctioncheckDefaultCredentials
probeOllamaIfSelected does a best-effort GET on /api/tags to verify the user's Ollama server is reachable when `ollama_local` is configured. Failures
clients/launcher/cmd/start.go:562
↓ 6 callersMethodcompletion
( self, model: str, messages: list[dict[str, Any]], api_base: str | None = Non
config/grok_handler.py:159
↓ 6 callersFunctioncritical_path_score
Single-number rating for a chain used by the orchestrator prioritiser. Combines inverse cost and severity-of-worst-hop so chains with one cri
packages/decepticon/decepticon/tools/research/chain.py:321
↓ 6 callersMethoddescribe
(self)
packages/decepticon/decepticon/tools/opplan_graph.py:35
↓ 6 callersFunctiondetect
Return ranked list of detection hits (best first). When nothing fires, the returned list contains a single `unknown_challenge` hit with confi
packages/decepticon/decepticon/sandbox_web/waf_detector.py:182
↓ 6 callersFunctiondraft
()
packages/decepticon/tests/unit/artifacts/test_registry.py:34
↓ 6 callersFunctionengagement_workspace
Resolve the workspace directory for an engagement. Mirrors ``decepticon.cli.scan`` so the MCP bridge and the headless CLI resolve the same pa
packages/decepticon/decepticon/roe_materialization.py:25
↓ 6 callersFunctionexport_engagement
Zip ``<workspace>/engagements/<engagement_id>/`` into ``output``. Archive entries are stored relative to ``engagements/`` so the top-level di
packages/decepticon/decepticon/cli/zip.py:100
↓ 6 callersFunctiongetAssistantOverride
()
clients/cli/src/commands/assistantOverride.ts:17
↓ 6 callersFunctiongetClient
()
clients/cli/src/utils/threadStore.ts:20
↓ 6 callersFunctionget_artifact
(registry: ArtifactRegistry, document_uuid: UUID)
packages/decepticon/decepticon/artifacts/registry.py:41
↓ 6 callersFunctionhas_ollama_route
True when at least one requested model uses an Ollama provider. ``prefixes`` narrows the match — pass ``LOCAL_OLLAMA_PREFIXES`` or ``CLOUD_OL
config/ollama_probe.py:56
↓ 6 callersMethodlist_requests
( self, project: str | None = None, limit: int = 50, filter_: str | None = None )
packages/decepticon/decepticon/tools/proxy/tools.py:116
↓ 6 callersFunctionmerged_payloads
Return ``BUNDLED_PAYLOADS`` plus any ingested rows, deduplicated. The result is memoized per-process keyed by the cache root path and the Pay
packages/decepticon/decepticon/tools/references/payloads_ingest.py:232
↓ 6 callersFunctionnormalize_phase
Fold any heading variant into the canonical phase slug.
packages/decepticon/decepticon/tools/references/killchain.py:117
↓ 6 callersFunctionopen_replay
Open ``path`` for replay lookups.
packages/decepticon/decepticon/runtime/recording.py:228
↓ 6 callersFunctionparse_workflow
Parse a registered WORKFLOW.md; refuse ambiguous or unscoped sections.
packages/decepticon/decepticon/workflows/models.py:89
↓ 6 callersFunctionpersist_artifacts
( registry: ArtifactRegistry, backend: BackendProtocol, workspace: str | None )
packages/decepticon/decepticon/middleware/artifact_tools.py:37
↓ 6 callersMethodpoll_completion
Return the latest BackgroundJob for `session` (None if missing).
packages/decepticon/decepticon/backends/http_sandbox.py:403
↓ 6 callersFunctionpromote_chain
Materialize a computed chain as an AttackPath node in Neo4j. Creates the AttackPath node with STARTS_AT → entrypoint, REACHES → crown_jewel,
packages/decepticon/decepticon/tools/research/chain.py:250
↓ 6 callersMethodquery_custom
Run trusted static Cypher with mandatory engagement scope. The compatibility layer used to allow an unfiltered query and merely suppl
packages/decepticon/decepticon/tools/research/_state.py:100
↓ 6 callersFunctionrecord_llm_cost
Attach cost to the active llm_call span, or to engagement as fallback.
packages/decepticon/decepticon/telemetry/otel.py:216
↓ 6 callersMethodrecord_observations
( self, observations: list[dict[str, Any]], *, engagement: str, create
packages/decepticon/tests/unit/middleware/test_kg_ingest_unit.py:37
↓ 6 callersFunctionregister_adapter
Register a scanner adapter. Idempotent — re-registering the same ``scanner_kind`` replaces the previous entry. Plugin authors typically regis
packages/decepticon/decepticon/middleware/kg_internal/ingest.py:64
↓ 6 callersFunctionresolveEngagementDir
(name: string, workspace: string)
clients/web/src/lib/workspace.ts:14
↓ 6 callersFunctionresolve_auth_mode
Resolve the effective auth mode: explicit override, else inferred from config.
packages/decepticon/decepticon/mcp_server/auth.py:130
↓ 6 callersFunctionrunner
(argv, stdin)
packages/decepticon/tests/unit/sandbox_kernel/test_egress_applier.py:111
↓ 6 callersFunctionruntimeWorkspace
()
clients/cli/src/utils/runtimeWorkspace.ts:2
↓ 6 callersFunctionscopeReady
scopeReady reports whether the engagement has an enforced machine scope. Creation is the authorization — an engagement created with targets carries a
clients/launcher/internal/engagement/picker.go:125
↓ 6 callersFunctionscore_vector
Full deterministic scoring of a CVSS 3.1 vector string.
packages/decepticon/decepticon/tools/reporting/cvss.py:204
↓ 6 callersFunctionsearch
Filter the H1 corpus in memory. If ``reports`` is omitted, the full corpus is loaded from the cached repo on each call — fine for interactive
packages/decepticon/decepticon/tools/references/h1_corpus.py:272
↓ 6 callersMethodsetup
(self, challenge: Challenge)
benchmark/providers/mhbench.py:371
↓ 6 callersFunctionshannon_entropy
(data: bytes)
packages/decepticon/decepticon/tools/reversing/packer.py:35
↓ 6 callersMethodsize
(self)
packages/decepticon/decepticon/tools/references/cve_poc_index.py:69
↓ 6 callersFunctionspawn
(_command: string, _args: string[], config: { env: Record<string, string> })
clients/web/src/lib/terminal-thread-recovery.test.ts:66
↓ 6 callersFunctionsync_client
Construct an ``httpx.Client`` with connect-retry resilience. Caller-supplied ``transport`` overrides the default retrying transport. All othe
config/http_client.py:39
↓ 6 callersFunctiontask_tool
(backend: FilesystemBackend, calls: list[str])
packages/decepticon/tests/unit/workflows/opplan_helpers.py:67
↓ 6 callersMethodto_dict
(self)
packages/decepticon/decepticon/tools/cloud/k8s.py:55
↓ 6 callersFunctionuseMouseTarget
(ref: RefObject<DOMElement | null>, handler: (event: MouseEvent, local: { x: number; y: number }) => void, act
clients/cli/src/terminal/TerminalUI.tsx:61
← previousnext →601–700 of 10,737, ranked by callers