MCPcopy Create free account

hub / github.com/JameZUK/Arkana / functions

Functions6,492 in github.com/JameZUK/Arkana

↓ 29 callersFunction_skip_if_no_refinery
Skip test if Binary Refinery is not installed.
tests/test_pipeline_expansion.py:13
↓ 29 callersMethodadd_warning
Thread-safe warning capture with deduplication. Returns the new entry dict, or None if deduplicated (count incremented). Uses a deque
arkana/state.py:1082
↓ 29 callersFunctiongetCsrfToken
()
arkana/dashboard/static/dashboard.js:39
↓ 29 callersFunctionget_current_state
Return the ``AnalyzerState`` for the current context.
arkana/state.py:1517
↓ 28 callersFunction_validate_csrf
Check CSRF token from X-CSRF-Token header or form field. Recomputes the expected HMAC-based token from the request's auth cookie (or the dash
arkana/dashboard/app.py:961
↓ 28 callersMethodhash
(self, buf_data_input)
arkana/hashing.py:100
↓ 27 callersFunctiong
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 27 callersFunctionie
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 26 callersFunction_add_trace_entry
Add an entry to the API trace from any hook or stub.
scripts/debug_runner.py:1382
↓ 26 callersFunction_hex_to_bytes
Convert a hex string (with optional spaces/0x/\\x prefixes) to bytes.
arkana/mcp/_refinery_helpers.py:38
↓ 26 callersFunction_import_session_cls
()
tests/test_debug.py:114
↓ 26 callersFunction_run
Helper to run async functions in tests.
tests/test_streamline.py:16
↓ 26 callersMethodclear
Clear cache for a specific tool, or all tools if *tool_name* is ``None``.
arkana/mcp/_input_helpers.py:134
↓ 26 callersFunctionget_magic_hint
Read the first 4 bytes of *file_path* and return a human-readable format hint. This is the canonical implementation used by ``list_samples`` and
arkana/mcp/_format_helpers.py:58
↓ 26 callersFunctionparse_query
Parse a query string into a list of predicates. Args: query: Comma-separated predicates (e.g. ``"api=VirtualAlloc,seq>10"``). Return
scripts/trace_query.py:81
↓ 25 callersFunctionEa
(e,t)
arkana/dashboard/static/cytoscape.min.js:29
↓ 25 callersFunction_check_pe_object
Raise a descriptive RuntimeError if pe_object is unavailable. Call *after* ``_check_pe_loaded()``. Many PE-specific tools access ``state.pe_
arkana/mcp/server.py:496
↓ 25 callersFunction_read_u32
(data: bytes, off: int, big_endian: bool = False)
arkana/parsers/go_pclntab.py:78
↓ 25 callersFunctionas
(e,t,n,r)
arkana/dashboard/static/cytoscape.min.js:32
↓ 25 callersFunctionee
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 24 callersMethod_call
Set up state and invoke detect_vm_protection.__wrapped__.
tests/test_obfuscation.py:317
↓ 24 callersFunction_cancelled
Check if enrichment has been cancelled or superseded by a newer run.
arkana/enrichment.py:124
↓ 24 callersFunction_check_lib
Raise RuntimeError if a required library is not installed.
arkana/mcp/_format_helpers.py:7
↓ 24 callersFunctionevaluate_predicate
Test whether a single trace entry matches a predicate. Args: entry: A trace entry dict (seq, api, args, retval, ...). pred: A par
scripts/trace_query.py:169
↓ 24 callersMethodlist
(self, *, filter: str = "", tag: Optional[str] = None, sort_by: str = "last_opened")
arkana/projects.py:728
↓ 24 callersFunctionu
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 23 callersFunction_get_connection
Open a WAL-mode connection to the signatures DB.
arkana/mcp/_bsim_features.py:656
↓ 23 callersFunction_parse_int_param
Parse an integer parameter that may be given as hex string. Accepts plain ``int``, ``"0x1b22d8"``, ``"1778392"``, ``"0b1010"``, or ``"0o777"`
arkana/mcp/_input_helpers.py:18
↓ 23 callersFunction_require_refinery
Raise a clear error if binary-refinery is not installed.
arkana/mcp/_refinery_helpers.py:30
↓ 23 callersFunction_stub_read_param
Read the Nth parameter (0-indexed) for the current architecture. For x86 STDCALL: params are on the stack at ESP+4, ESP+8, etc. For x86-64 fa
scripts/debug_runner.py:430
↓ 23 callersFunction_stub_set_retval
Set the API return value register for the current architecture.
scripts/debug_runner.py:450
↓ 23 callersFunctionsearch_lines_with_context
Search *lines* for *pattern* and return matching regions with context. Args: lines: List of text lines (e.g. decompiled pseudocode).
arkana/mcp/_search_helpers.py:71
↓ 22 callersFunctionVe
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 22 callersFunction_make_pe_state
Set up state with pe_data loaded but configurable pe_object.
tests/test_pe_object_guard.py:49
↓ 22 callersFunction_read_ptr
Read a pointer-sized value (4 or 8 bytes).
arkana/parsers/go_pclntab.py:99
↓ 22 callersFunctionannotate_go_call
Build a Go ABI annotation dict for a call instruction. Args: target_name: The resolved function name at the call target. abi_type
arkana/mcp/_go_abi.py:213
↓ 22 callersMethodput
Store a ``pe_data`` dict in the cache. Returns True on success. v2 cache format: user-mutable state (notes, artifacts, renames,
arkana/cache.py:294
↓ 22 callersFunctionvalidate_regex_pattern
Validate a regex pattern for safety before compilation. Raises ValueError if the pattern is too long, contains constructs that are known to c
arkana/utils.py:134
↓ 21 callersFunction_get_filepath
Get the file path to analyze, defaulting to the loaded file.
arkana/mcp/_format_helpers.py:17
↓ 21 callersFunction_make_real_pe_state
Set up state with a full mock pefile.PE object for happy-path testing.
tests/test_fixed_tools_comprehensive.py:106
↓ 21 callersFunction_parse_json_body
Parse and validate a JSON POST body. Returns (body_dict, None) on success, or (None, error_response) on failure.
arkana/dashboard/app.py:1100
↓ 21 callersFunction_register_background_task
Register a background task and its cancel event atomically. Creates a cancel event, registers it in ``_task_cancel_events``, then calls ``sta
arkana/background.py:210
↓ 21 callersFunction_run
Helper to run async coroutines in tests.
tests/test_vm_protection.py:23
↓ 21 callersFunction_run
(coro)
tests/test_pe_object_guard.py:13
↓ 21 callersFunction_safe_parse
Call *func* and return its result. On any exception, return an error dict so that partial analysis results are still available.
arkana/parsers/pe.py:45
↓ 21 callersFunctiondetect_vm_protection
Detect VM-based code obfuscation (VMProtect, Themida, Code Virtualizer). Phase: 3 — Map Identifies virtual machine-based code protection by
arkana/mcp/tools_angr_forensic.py:2358
↓ 21 callersFunctionfe
(e,t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 21 callersFunctionget_db_path
Return the path to the signatures database.
arkana/mcp/_bsim_features.py:651
↓ 21 callersMethodinfo
(self, msg)
tests/test_frida.py:34
↓ 20 callersFunction_update
Update enrichment task progress.
arkana/enrichment.py:114
↓ 20 callersMethodget_all_artifacts_snapshot
Thread-safe snapshot of all artifacts for cache persistence.
arkana/state.py:823
↓ 20 callersFunctionp
(t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 19 callersFunction_run
Helper to run async functions in tests.
tests/test_truncation.py:14
↓ 19 callersMethod_setup_session
(self, clean_state, responses)
tests/test_debug.py:1204
↓ 19 callersMethoddelete
(self, project: Project)
arkana/projects.py:897
↓ 19 callersMethodget_data
Mimic pefile.get_data for signature extraction attempts.
arkana/mock.py:45
↓ 19 callersMethodis_alive
(self)
arkana/mcp/tools_debug.py:192
↓ 19 callersFunctionparse_sequence
Parse a sequence pattern string into API name patterns. Args: sequence: Semicolon-separated API name substrings (e.g. ``"Virt
scripts/trace_query.py:271
↓ 19 callersFunctionshannon_entropy
Compute the Shannon entropy of a byte sequence. Returns a value between 0.0 (uniform) and 8.0 (maximum randomness). Returns 0.0 for empty inp
arkana/utils.py:243
↓ 18 callersFunctionE
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 18 callersFunctionPt
(e,t,n,r)
arkana/dashboard/static/cytoscape.min.js:23
↓ 18 callersFunction_bytes_to_hex
Convert bytes to a hex string, truncating if needed.
arkana/mcp/_refinery_helpers.py:61
↓ 18 callersMethod_check_output_path_param
Assert func has output_path: Optional[str] = None parameter.
tests/test_output_path.py:15
↓ 18 callersFunction_get_file_data
Get the raw bytes of the currently loaded file.
arkana/mcp/_refinery_helpers.py:85
↓ 18 callersFunction_has_code
Check if any issue has the given code.
tests/test_integrity.py:145
↓ 18 callersFunction_make_cache_key
Build a hashable cache key from keyword arguments. Excludes ``offset``, ``limit``, ``compact``, and ``ctx`` so that different pages of the sa
arkana/mcp/_input_helpers.py:224
↓ 18 callersFunction_parse_fields
Parse binary data according to schema. Returns (fields_dict, bytes_consumed).
arkana/mcp/tools_struct.py:39
↓ 18 callersFunction_resolve_function_address
Resolve a function address, trying RVA-to-VA correction if needed. Returns (function_object, address_used). Uses a local snapshot of the CFG
arkana/mcp/_angr_helpers.py:161
↓ 18 callersFunction_scan_for_mba_patterns
Scan decompiled pseudocode lines for MBA patterns.
arkana/mcp/tools_trace_analysis.py:360
↓ 18 callersMethod_setup_session
Create a manager with a mocked session on the state.
tests/test_debug.py:711
↓ 18 callersMethod_tmp_db
(self, tmp_path)
tests/test_bsim.py:282
↓ 18 callersMethodcancel_all_background_tasks
Cancel all running/overtime background tasks and mark them FAILED. Called during force file switch to ensure no stale tasks persist.
arkana/state.py:425
↓ 18 callersFunctiondetect_go_abi
Determine whether a Go binary uses register or stack ABI. Args: go_version_hint: Go version string (e.g. 'go1.21.5'). arch: Archi
arkana/mcp/_go_abi.py:136
↓ 18 callersMethodget_active_project
Thread-safe read of the active project.
arkana/state.py:1245
↓ 18 callersFunctionget_dashboard_theme
Return the current dashboard theme name, cached for 2s.
arkana/user_config.py:337
↓ 18 callersFunctionis_go_function
Check if a function name follows Go naming conventions. Returns True for names like ``main.main``, ``crypto/tls.(*Conn).Read``, ``runtime.mal
arkana/mcp/_go_abi.py:93
↓ 18 callersFunctionoe
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 18 callersFunctionquery_similar_functions
Two-phase query: SQL pre-filter then full similarity + confidence scoring. Phase 1: SQL filters candidates by block_count and instruction_count
arkana/mcp/_bsim_features.py:812
↓ 18 callersMethodupdate_note
Thread-safe partial update. Returns updated note or None. For hypothesis notes, also accepts: confidence, hypothesis_status, evidence
arkana/state.py:519
↓ 17 callersFunctionHe
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 17 callersFunction_get_string_category
Categorizes a string based on a set of regular expressions for common indicator of compromise (IOC) patterns. Args: string_value
arkana/parsers/strings.py:236
↓ 17 callersFunction_make_none_pe_state
State with pe_data but pe_object=None (simulates cache restore).
tests/test_fixed_tools_comprehensive.py:185
↓ 17 callersFunctionload_user_config
Read ~/.arkana/config.json and return its contents as a dict.
arkana/user_config.py:221
↓ 17 callersMethodrename_function
Thread-safe function rename. Returns the rename entry.
arkana/state.py:840
↓ 17 callersFunctiony
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 16 callersFunction_extract_strings_from_data
(data_bytes: bytes, min_length: int = 5)
arkana/parsers/strings.py:23
↓ 16 callersFunction_log_task_exception
Return a done-callback that logs unhandled exceptions from background tasks.
arkana/background.py:202
↓ 16 callersFunction_make_loader
Create a mock angr loader + project with controllable sections/imports.
tests/test_detect_packing.py:21
↓ 16 callersFunction_pf
(items)
arkana/mcp/tools_triage.py:2032
↓ 16 callersFunction_validate_sha256
(sha256: str)
arkana/projects.py:88
↓ 16 callersFunctioncheck_file_integrity
Run pre-parse integrity checks on raw binary data. Args: data: Raw file bytes. detected_format: One of "pe", "elf", "macho", "she
arkana/integrity.py:806
↓ 16 callersFunctiondecrypt_buffer
Decrypt a buffer by XOR with PRNG keystream.
arkana/parsers/autoit.py:172
↓ 15 callersFunctionC
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 15 callersFunctionJt
(e,t)
arkana/dashboard/static/cytoscape.min.js:23
↓ 15 callersFunction_build_cti_markdown
Build a structured CTI report in markdown format.
arkana/mcp/tools_workflow.py:611
↓ 15 callersMethod_call
(self, pe_object, indicator_limit=100)
tests/test_triage_anti_analysis.py:178
↓ 15 callersFunction_get_data_from_hex_or_file_with_offset
Get data from hex, or a slice of the loaded file, or the full loaded file. Priority: data_hex > file_offset+length from loaded file > full loaded
arkana/mcp/_refinery_helpers.py:116
↓ 15 callersMethod_maybe_promote_scratch
Promote ``self.active_project`` if it is currently a ScratchProject. Called from mutation methods (add_note, register_artifact, rename_*,
arkana/state.py:1358
↓ 15 callersFunction_parse_header
Parse a gopclntab header at *base* in *data*. Returns ``None`` on invalid/truncated data.
arkana/parsers/go_pclntab.py:232
↓ 15 callersFunction_safe_slice
Safely slice a value to at most *n* items.
scripts/qiling_runner.py:84
← previousnext →101–200 of 6,492, ranked by callers