Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JameZUK/Arkana
/ functions
Functions
6,492 in github.com/JameZUK/Arkana
⨍
Functions
6,492
◇
Types & classes
688
↳
Endpoints
6
↓ 15 callers
Function
_try_numeric
Attempt to parse *value* as an integer (including hex) or float.
scripts/trace_query.py:63
↓ 15 callers
Method
add_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 callers
Function
compute_similarity
Compute similarity between two feature vectors. Parameters ---------- features_a, features_b : dict Feature vectors from extract_
arkana/mcp/_bsim_features.py:402
↓ 15 callers
Function
create_project_data
Create a new (empty) project. Used by the dashboard "New project" button.
arkana/dashboard/projects_api.py:141
↓ 15 callers
Method
get_renames
Thread-safe deep read of renames, optionally filtered by type.
arkana/state.py:880
↓ 15 callers
Function
get_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 callers
Method
get_warnings
(self)
arkana/mock.py:33
↓ 15 callers
Function
h
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 15 callers
Method
set_angr_results
Atomically set all angr analysis results.
arkana/state.py:1171
↓ 14 callers
Function
D
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callers
Function
R
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 14 callers
Function
Yt
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callers
Function
_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 callers
Function
_import_manager_cls
()
tests/test_debug.py:119
↓ 14 callers
Function
_make_section
Create a mock section with the fields detect_packing reads.
tests/test_detect_packing.py:9
↓ 14 callers
Function
_t
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callers
Function
_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 callers
Function
apply_function_renames_to_lines
Replace auto-generated function names (sub_HEXADDR) with user-assigned names.
arkana/mcp/_rename_helpers.py:20
↓ 14 callers
Function
c
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 14 callers
Function
debug_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 callers
Method
flush_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 callers
Function
generate_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 callers
Function
get_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 callers
Function
get_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 callers
Function
isObject
* 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 callers
Function
j
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 14 callers
Function
m
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 14 callers
Method
save_manifest
(self)
arkana/projects.py:347
↓ 13 callers
Function
_collect_background_alerts
Collect alerts for running and overtime background tasks.
arkana/mcp/server.py:228
↓ 13 callers
Function
_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 callers
Function
_format_arg_reader
Generate JS to read a single Frida hook argument.
arkana/mcp/_frida_templates.py:454
↓ 13 callers
Function
_jaccard_similarity
Jaccard index for two sets.
arkana/mcp/_bsim_features.py:351
↓ 13 callers
Function
_make_pe_with_sections
Create a mock PE object with sections and OPTIONAL_HEADER.
tests/test_triage_anti_analysis.py:34
↓ 13 callers
Function
_make_section
Create a mock PE section with the given data and characteristics.
tests/test_triage_anti_analysis.py:23
↓ 13 callers
Method
_minimal_pe_data
(self)
tests/test_cti_report.py:104
↓ 13 callers
Function
_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 callers
Method
_run_detect
Run detect_packing with a mocked project, return the result dict.
tests/test_detect_packing.py:105
↓ 13 callers
Method
block
(addr)
tests/test_obfuscation.py:216
↓ 13 callers
Function
detect_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 callers
Method
get_warning_count
Quick count of unique warnings.
arkana/state.py:1148
↓ 13 callers
Method
kill
(self)
arkana/mcp/tools_debug.py:195
↓ 13 callers
Function
re
(t,n)
arkana/dashboard/static/htmx.min.js:1
↓ 13 callers
Function
te
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 13 callers
Method
unregister_task_infra
Remove cancel event and thread ref for a completed/failed task.
arkana/state.py:359
↓ 12 callers
Function
Ta
(e,t)
arkana/dashboard/static/cytoscape.min.js:29
↓ 12 callers
Function
Wa
(e)
arkana/dashboard/static/cytoscape.min.js:29
↓ 12 callers
Function
_auth_page
(template: str, nav: str, data_fn=None)
arkana/dashboard/app.py:1128
↓ 12 callers
Function
_build_cti_json
Build a structured CTI report as a JSON-friendly dict.
arkana/mcp/tools_workflow.py:905
↓ 12 callers
Function
_build_minimal_pe
Construct a minimal valid PE file via struct.pack_into.
tests/test_integrity.py:24
↓ 12 callers
Function
_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 callers
Method
_call
(self, pe_object, indicator_limit=100)
tests/test_triage_anti_analysis.py:51
↓ 12 callers
Function
_check_generic
Check file-level properties: size, null ratio, entropy. Returns (issues, flags, entropy, null_ratio).
arkana/integrity.py:75
↓ 12 callers
Function
_empty_report
Return an empty unified report structure.
arkana/parsers/sandbox.py:374
↓ 12 callers
Function
_encode_go_name
Encode a Go name as [flags] [len_hi] [len_lo] [name_bytes].
tests/test_go_types.py:31
↓ 12 callers
Function
_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 callers
Function
_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 callers
Function
_mock_section
(name=".text", va=0x1000, vsize=0x1000, raw_size=0x1000, raw_offset=0x200, chars=0x60000020,
tests/test_fixed_tools_deep.py:112
↓ 12 callers
Function
_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 callers
Function
_rc4_decrypt
RC4 decryption (KSA + PRGA).
arkana/mcp/tools_payload.py:979
↓ 12 callers
Function
_report
(step: int, total: int, message: str)
arkana/parsers/pe.py:966
↓ 12 callers
Function
_report
(pct, msg="")
arkana/mcp/tools_triage.py:1989
↓ 12 callers
Function
apply_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 callers
Function
detect_sandbox_format
Auto-detect sandbox format from report JSON structure.
arkana/parsers/sandbox.py:24
↓ 12 callers
Function
extract_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 callers
Function
init_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 callers
Function
k
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 12 callers
Function
match_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 callers
Method
register_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 callers
Method
reset_angr
(self)
arkana/state.py:1200
↓ 12 callers
Function
search_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 callers
Method
set_triage_status
Thread-safe triage status update. Returns the entry.
arkana/state.py:1046
↓ 12 callers
Function
we
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 11 callers
Function
E
()
arkana/dashboard/static/htmx.min.js:1
↓ 11 callers
Function
Ha
(e,t,n,r,i)
arkana/dashboard/static/cytoscape.min.js:29
↓ 11 callers
Function
Ue
(e,t,n)
arkana/dashboard/static/cytoscape.min.js:23
↓ 11 callers
Function
_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 callers
Function
_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 callers
Method
_extract_ips
Helper to run the IP extraction logic from _triage_network_iocs.
tests/test_review_fixes.py:500
↓ 11 callers
Function
_format_hex_dump_lines
(data_chunk: bytes, start_address: int = 0, bytes_per_line: int = 16)
arkana/parsers/strings.py:51
↓ 11 callers
Function
_get_pc
Get current program counter value.
scripts/debug_runner.py:185
↓ 11 callers
Function
_hex
Convert an integer to hex string, handling None.
scripts/speakeasy_emulate_runner.py:94
↓ 11 callers
Method
_make_artifacts
(self, state)
tests/test_dashboard_projects_api.py:207
↓ 11 callers
Function
_make_decompile_key
Build a session-scoped decompile cache key.
arkana/mcp/tools_angr.py:42
↓ 11 callers
Function
_make_init_response
(arch="x86", os_type="windows", pc="0x401000")
tests/test_debug.py:69
↓ 11 callers
Function
_make_mockpe_state
State with MockPE (shellcode/ELF) — has __data__ but no OPTIONAL_HEADER.
tests/test_fixed_tools_comprehensive.py:198
↓ 11 callers
Function
_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 callers
Function
_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 callers
Method
_should_capture
Return True if this record comes from a library we track.
arkana/warning_handler.py:42
↓ 11 callers
Function
_validate_address
Validate and normalise an address string.
arkana/mcp/tools_debug.py:77
↓ 11 callers
Function
call_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 callers
Method
create_struct
Thread-safe struct creation. Returns the struct definition.
arkana/state.py:939
↓ 11 callers
Function
extract_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 callers
Function
f
(e)
arkana/dashboard/static/cytoscape.min.js:23
↓ 11 callers
Function
f
(e)
arkana/dashboard/static/htmx.min.js:1
↓ 11 callers
Method
force_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 callers
Function
g
(e,t)
arkana/dashboard/static/htmx.min.js:1
↓ 11 callers
Function
generate_anti_vm_bypass_js
Generate a Frida script that bypasses common VM detection techniques.
arkana/mcp/_frida_templates.py:814
↓ 11 callers
Function
generate_injection_detector_js
Generate a Frida script that monitors for process injection patterns.
arkana/mcp/_frida_templates.py:1010
↓ 11 callers
Function
generate_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 callers
Function
get_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
← previous
next →
201–300 of 6,492, ranked by callers