MCPcopy Create free account

hub / github.com/JameZUK/Arkana / functions

Functions6,492 in github.com/JameZUK/Arkana

↓ 15 callersFunction_try_numeric
Attempt to parse *value* as an integer (including hex) or float.
scripts/trace_query.py:63
↓ 15 callersMethodadd_binary
Add a binary to *project* by copying it into binaries/. Hashing happens here unless ``declared_sha256`` is supplied (in which case th
arkana/projects.py:801
↓ 15 callersFunctioncompute_similarity
Compute similarity between two feature vectors. Parameters ---------- features_a, features_b : dict Feature vectors from extract_
arkana/mcp/_bsim_features.py:402
↓ 15 callersFunctioncreate_project_data
Create a new (empty) project. Used by the dashboard "New project" button.
arkana/dashboard/projects_api.py:141
↓ 15 callersMethodget_renames
Thread-safe deep read of renames, optionally filtered by type.
arkana/state.py:880
↓ 15 callersFunctionget_section_permissions
[Phase: explore] Maps every section's permission flags (Read/Write/Execute) with anomaly detection. Flags sections with dangerous W+X (writab
arkana/mcp/tools_pe_extended.py:25
↓ 15 callersMethodget_warnings
(self)
arkana/mock.py:33
↓ 15 callersFunctionh
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 15 callersMethodset_angr_results
Atomically set all angr analysis results.
arkana/state.py:1171
↓ 14 callersFunctionD
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callersFunctionR
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 14 callersFunctionYt
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callersFunction_hex_pattern_to_regex
Convert a space-separated hex pattern with ?? wildcards to a bytes regex. Example: "4D 5A ?? ?? 50 45" → re pattern matching MZ..PE
arkana/mcp/tools_strings.py:1726
↓ 14 callersFunction_import_manager_cls
()
tests/test_debug.py:119
↓ 14 callersFunction_make_section
Create a mock section with the fields detect_packing reads.
tests/test_detect_packing.py:9
↓ 14 callersFunction_t
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callersFunction_va_to_offset
Convert a VA to file offset using PE section table. Args: va: Virtual address to convert. image_base: PE ImageBase. secti
arkana/parsers/vb6.py:29
↓ 14 callersFunctionapply_function_renames_to_lines
Replace auto-generated function names (sub_HEXADDR) with user-assigned names.
arkana/mcp/_rename_helpers.py:20
↓ 14 callersFunctionc
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 14 callersFunctiondebug_stub_api
[Phase: dynamic] Create a custom API stub at runtime. When the binary calls the specified Windows API, the stub intercepts it: sets the retur
arkana/mcp/tools_debug.py:1401
↓ 14 callersMethodflush_overlay
Persist current overlay to the active project (if any). Returns True on flush. Snapshot and dirty-flag update happen under ``_project_lock``,
arkana/state.py:1441
↓ 14 callersFunctiongenerate_api_logger_js
Generate a Frida script that logs API calls as structured JSON lines. Args: apis: List of API names to hook. include_args: Includ
arkana/mcp/_frida_templates.py:1208
↓ 14 callersFunctionget_pe_metadata
[Phase: explore] Returns extended PE metadata not covered by basic header tools: machine type, subsystem, OS version, linker version, ASLR/DE
arkana/mcp/tools_pe_extended.py:93
↓ 14 callersFunctionget_setting_value
Return the effective value for a registered setting. Resolution: env var > config.json > registry default. Returns the value cast to the corr
arkana/user_config.py:392
↓ 14 callersFunctionisObject
* Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arr
arkana/dashboard/static/dagre.min.js:2926
↓ 14 callersFunctionj
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callersFunctionm
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 14 callersMethodsave_manifest
(self)
arkana/projects.py:347
↓ 13 callersFunction_collect_background_alerts
Collect alerts for running and overtime background tasks.
arkana/mcp/server.py:228
↓ 13 callersFunction_extract_brief_description
Extract the compact shorthand from a ``---compact:`` line in the docstring. Every tool docstring should contain a line like:: ---compact
arkana/mcp/server.py:50
↓ 13 callersFunction_format_arg_reader
Generate JS to read a single Frida hook argument.
arkana/mcp/_frida_templates.py:454
↓ 13 callersFunction_jaccard_similarity
Jaccard index for two sets.
arkana/mcp/_bsim_features.py:351
↓ 13 callersFunction_make_pe_with_sections
Create a mock PE object with sections and OPTIONAL_HEADER.
tests/test_triage_anti_analysis.py:34
↓ 13 callersFunction_make_section
Create a mock PE section with the given data and characteristics.
tests/test_triage_anti_analysis.py:23
↓ 13 callersMethod_minimal_pe_data
(self)
tests/test_cti_report.py:104
↓ 13 callersFunction_read_cstring
Read a null-terminated string from data at offset, bounded by max_len. Returns empty string on any error.
arkana/parsers/vb6.py:57
↓ 13 callersMethod_run_detect
Run detect_packing with a mocked project, return the result dict.
tests/test_detect_packing.py:105
↓ 13 callersMethodblock
(addr)
tests/test_obfuscation.py:216
↓ 13 callersFunctiondetect_format_extended
Return extended format info from the first 4 bytes. First checks binary formats via detect_format_from_magic(), then tries extended signature
arkana/mcp/_format_helpers.py:133
↓ 13 callersMethodget_warning_count
Quick count of unique warnings.
arkana/state.py:1148
↓ 13 callersMethodkill
(self)
arkana/mcp/tools_debug.py:195
↓ 13 callersFunctionre
(t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 13 callersFunctionte
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 13 callersMethodunregister_task_infra
Remove cancel event and thread ref for a completed/failed task.
arkana/state.py:359
↓ 12 callersFunctionTa
(e,t)
arkana/dashboard/static/cytoscape.min.js:29
↓ 12 callersFunctionWa
(e)
arkana/dashboard/static/cytoscape.min.js:29
↓ 12 callersFunction_auth_page
(template: str, nav: str, data_fn=None)
arkana/dashboard/app.py:1128
↓ 12 callersFunction_build_cti_json
Build a structured CTI report as a JSON-friendly dict.
arkana/mcp/tools_workflow.py:905
↓ 12 callersFunction_build_minimal_pe
Construct a minimal valid PE file via struct.pack_into.
tests/test_integrity.py:24
↓ 12 callersFunction_build_vb6_pe
Build a minimal VB6 PE file with struct.pack. Returns (data_bytes, image_base, sections_list).
tests/test_vb6.py:21
↓ 12 callersMethod_call
(self, pe_object, indicator_limit=100)
tests/test_triage_anti_analysis.py:51
↓ 12 callersFunction_check_generic
Check file-level properties: size, null ratio, entropy. Returns (issues, flags, entropy, null_ratio).
arkana/integrity.py:75
↓ 12 callersFunction_empty_report
Return an empty unified report structure.
arkana/parsers/sandbox.py:374
↓ 12 callersFunction_encode_go_name
Encode a Go name as [flags] [len_hi] [len_lo] [name_bytes].
tests/test_go_types.py:31
↓ 12 callersFunction_get_cached_flat_strings
Build and cache a flat list of strings from FLOSS + basic_ascii data. Two cache variants via ``state.result_cache``: - ``("_flat_strings", "f
arkana/mcp/tools_strings.py:41
↓ 12 callersFunction_locate_binary_for_stub
Search known sample directories for a file matching *sha256*. Returns the absolute path of the first match, or "" if nothing is found. Used b
arkana/dashboard/app.py:450
↓ 12 callersFunction_mock_section
(name=".text", va=0x1000, vsize=0x1000, raw_size=0x1000, raw_offset=0x200, chars=0x60000020,
tests/test_fixed_tools_deep.py:112
↓ 12 callersFunction_parse_go_version
Extract (major, minor) from a Go version string. Handles formats like 'go1.21.5', '1.17', 'go1.18rc1', 'go1.20beta1'. Returns None if the ver
arkana/mcp/_go_abi.py:72
↓ 12 callersFunction_rc4_decrypt
RC4 decryption (KSA + PRGA).
arkana/mcp/tools_payload.py:979
↓ 12 callersFunction_report
(step: int, total: int, message: str)
arkana/parsers/pe.py:966
↓ 12 callersFunction_report
(pct, msg="")
arkana/mcp/tools_triage.py:1989
↓ 12 callersFunctionapply_variable_renames_to_lines
Apply variable renames to decompiled code lines. Uses a single combined regex so all old names are matched in one pass, preventing cascading
arkana/mcp/_rename_helpers.py:48
↓ 12 callersFunctiondetect_sandbox_format
Auto-detect sandbox format from report JSON structure.
arkana/parsers/sandbox.py:24
↓ 12 callersFunctionextract_function_features
Extract a feature vector from a single angr Function object. Parameters ---------- project : angr.Project cfg : angr.analyses.CFGFast
arkana/mcp/_bsim_features.py:81
↓ 12 callersFunctioninit_db
Initialise the schema (idempotent). Uses CREATE TABLE/INDEX IF NOT EXISTS, so safe to call on existing DBs.
arkana/mcp/_bsim_features.py:666
↓ 12 callersFunctionk
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 12 callersFunctionmatch_sequences
Find ordered API call sequences in trace entries. Scans the trace for occurrences where each step's substring appears in the API name of succ
scripts/trace_query.py:300
↓ 12 callersMethodregister_task_infra
Register a cancel event (and optional thread) for *task_id*. Must be called **before** ``set_task(task_id, ...)`` so that ``cancel_al
arkana/state.py:337
↓ 12 callersMethodreset_angr
(self)
arkana/state.py:1200
↓ 12 callersFunctionsearch_instructions_with_context
Search instruction dicts for *pattern* and return matching regions. Searches each instruction's ``mnemonic + " " + op_str``, plus ``call_targ
arkana/mcp/_search_helpers.py:128
↓ 12 callersMethodset_triage_status
Thread-safe triage status update. Returns the entry.
arkana/state.py:1046
↓ 12 callersFunctionwe
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 11 callersFunctionE
()
arkana/dashboard/static/htmx.min.js:1
↓ 11 callersFunctionHa
(e,t,n,r,i)
arkana/dashboard/static/cytoscape.min.js:29
↓ 11 callersFunctionUe
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 11 callersFunction_collect_import_names
Extract (api_name, dll_name) tuples from pe_data imports. Handles the canonical format: [{"dll_name": "kernel32.dll", "symbols": [{"name"
arkana/mcp/tools_frida.py:73
↓ 11 callersFunction_detect_analysis_phase
Determine what phase of analysis the session is in. Uses a short TTL cache (2s) keyed on tool_history length to avoid recomputing on every ca
arkana/mcp/tools_session.py:37
↓ 11 callersMethod_extract_ips
Helper to run the IP extraction logic from _triage_network_iocs.
tests/test_review_fixes.py:500
↓ 11 callersFunction_format_hex_dump_lines
(data_chunk: bytes, start_address: int = 0, bytes_per_line: int = 16)
arkana/parsers/strings.py:51
↓ 11 callersFunction_get_pc
Get current program counter value.
scripts/debug_runner.py:185
↓ 11 callersFunction_hex
Convert an integer to hex string, handling None.
scripts/speakeasy_emulate_runner.py:94
↓ 11 callersMethod_make_artifacts
(self, state)
tests/test_dashboard_projects_api.py:207
↓ 11 callersFunction_make_decompile_key
Build a session-scoped decompile cache key.
arkana/mcp/tools_angr.py:42
↓ 11 callersFunction_make_init_response
(arch="x86", os_type="windows", pc="0x401000")
tests/test_debug.py:69
↓ 11 callersFunction_make_mockpe_state
State with MockPE (shellcode/ELF) — has __data__ but no OPTIONAL_HEADER.
tests/test_fixed_tools_comprehensive.py:198
↓ 11 callersFunction_read_name
Read a Go name from data at the given offset. Go names are encoded as: [flags_byte] [len_hi] [len_lo] [name_bytes...] The first byte contains
arkana/parsers/go_types.py:137
↓ 11 callersFunction_run_goresym
Run GoReSym binary and parse JSON output. GoReSym flags: -t (types), -d (type definitions), -p (file paths). Returns parsed result dict with
arkana/mcp/tools_go.py:265
↓ 11 callersMethod_should_capture
Return True if this record comes from a library we track.
arkana/warning_handler.py:42
↓ 11 callersFunction_validate_address
Validate and normalise an address string.
arkana/mcp/tools_debug.py:77
↓ 11 callersFunctioncall_tool_expect_error
Call a tool and assert that it returns an error. If the tool is unknown on this server build, the test is skipped.
tests/integration/mcp_test_client.py:342
↓ 11 callersMethodcreate_struct
Thread-safe struct creation. Returns the struct definition.
arkana/state.py:939
↓ 11 callersFunctionextract_wide_strings
[Phase: explore] Extracts UTF-16LE (wide) strings from the binary. Essential for Windows GUI applications and .NET binaries where strings are
arkana/mcp/tools_pe_extended.py:391
↓ 11 callersFunctionf
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 11 callersFunctionf
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 11 callersMethodforce_reset
Force-release and invalidate all current holders. Called on file switch so new threads can acquire the lock immediately, without wait
arkana/state.py:77
↓ 11 callersFunctiong
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 11 callersFunctiongenerate_anti_vm_bypass_js
Generate a Frida script that bypasses common VM detection techniques.
arkana/mcp/_frida_templates.py:814
↓ 11 callersFunctiongenerate_injection_detector_js
Generate a Frida script that monitors for process injection patterns.
arkana/mcp/_frida_templates.py:1010
↓ 11 callersFunctiongenerate_stalker_coverage_js
Generate a Frida Stalker script that collects basic-block coverage. Args: target_module: Module name to restrict coverage to (e.g. 'sampl
arkana/mcp/_frida_templates.py:624
↓ 11 callersFunctionget_analyzed_file_summary
Retrieves a high-level summary of the pre-loaded and analyzed PE file. ---compact: high-level file summary | hashes, sections, imports, FLOS
arkana/mcp/tools_pe.py:1578
← previousnext →201–300 of 6,492, ranked by callers