blint 3.2.3__tar.gz → 3.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blint-3.2.3 → blint-3.2.4}/PKG-INFO +1 -1
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_symbols_macho.yml +27 -0
- {blint-3.2.3 → blint-3.2.4}/blint/db.py +18 -1
- {blint-3.2.3 → blint-3.2.4}/blint/lib/utils.py +10 -3
- {blint-3.2.3 → blint-3.2.4}/pyproject.toml +1 -1
- {blint-3.2.3 → blint-3.2.4}/LICENSE +0 -0
- {blint-3.2.3 → blint-3.2.4}/README.md +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/__init__.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/cli.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/config.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/cyclonedx/README.md +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/cyclonedx/__init__.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/cyclonedx/spdx.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/cyclonedx/spec.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/__init__.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/android-services.json +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/__init__.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_apple_local_privesc_mie.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_entries_generic.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_entries_pe.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_exe_go.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_functions_generic.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_imports_pe.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_ios_fingerprint.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_ios_masvs.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_ios_privacy_access.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_ios_privacy_posture.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_ios_sidechannel.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_methods_android.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_methods_generic.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_methods_mips.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_methods_pe.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_monero_generic.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_monero_go.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_monero_rust.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_rootkits_win.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_rpc_win.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_symbols_antiforensic.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_symbols_generic.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_symbols_hooka.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/annotations/review_symbols_rust.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/rules.yml +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/data/trackers.json +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/__init__.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/analysis.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/android.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/android_services.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/binary.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/__init__.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/algorithms.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/api.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/canon.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/command.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/fingerprint.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/match.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/model.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph/rusi.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/callgraph_kpi.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/checks.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/dalvik.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/dalvik_callgraph.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/dalvik_cfg.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/dalvik_dataflow.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/dalvik_review.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/dalvik_semantics.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/disassembler.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/function_reviews.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/indicators.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/ios.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/macho_objc.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/review_runner.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/review_utils.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/runners.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/lib/sbom.py +0 -0
- {blint-3.2.3 → blint-3.2.4}/blint/logger.py +0 -0
|
@@ -863,3 +863,30 @@ rules:
|
|
|
863
863
|
- evaluateJavaScript
|
|
864
864
|
- WKUserScript
|
|
865
865
|
- addScriptMessageHandler
|
|
866
|
+
- id: APPLE_MACOS_XPC_SERVICE_USAGE
|
|
867
|
+
title: macOS XPC Service Usage
|
|
868
|
+
summary: Binary uses XPC APIs to communicate between processes
|
|
869
|
+
description: |
|
|
870
|
+
This Mach-O binary references symbols, classes, or selectors related to macOS XPC inter-process communication.
|
|
871
|
+
If it exposes a privileged helper service, it must validate the client's code signature to prevent
|
|
872
|
+
privilege escalation via trust cache bypass (e.g. Find My XPC / CDHash bypass).
|
|
873
|
+
patterns:
|
|
874
|
+
- xpc_connection_create_mach_service
|
|
875
|
+
- xpc_connection_create
|
|
876
|
+
- xpc_main
|
|
877
|
+
- NSXPCListener
|
|
878
|
+
- NSXPCConnection
|
|
879
|
+
- NSXPCInterface
|
|
880
|
+
- xpc_connection_get_audit_token
|
|
881
|
+
- xpc_dictionary_get_audit_token
|
|
882
|
+
- id: APPLE_MACOS_XPC_CONNECTION_HARDENING
|
|
883
|
+
title: macOS XPC Connection Hardening
|
|
884
|
+
summary: Binary uses APIs to validate XPC client identity/signature
|
|
885
|
+
description: |
|
|
886
|
+
This binary references APIs like xpc_connection_set_peer_code_signing_requirement or SecCodeCheckValidity,
|
|
887
|
+
which are used to validate the code signing requirements of peer/guest processes connecting via XPC.
|
|
888
|
+
This is a critical mitigation against connection impersonation vulnerabilities.
|
|
889
|
+
patterns:
|
|
890
|
+
- xpc_connection_set_peer_code_signing_requirement
|
|
891
|
+
- SecCodeCopyGuestWithAttributes
|
|
892
|
+
- SecCodeCheckValidity
|
|
@@ -306,9 +306,26 @@ def _merge_callgraph_rows(project_matches: dict, rows) -> None:
|
|
|
306
306
|
|
|
307
307
|
|
|
308
308
|
def _execute(connection: apsw.Connection, query: str, params: list) -> list[dict]:
|
|
309
|
+
"""Run a parameterised query and return each row as a dict.
|
|
310
|
+
|
|
311
|
+
The cursor is advanced with next() before calling getdescription() so the
|
|
312
|
+
column names are read while the statement is in the RUN state. SQLite cannot
|
|
313
|
+
report column names for a GROUP BY that produces zero rows -- the VDBE
|
|
314
|
+
program completes without ever entering the result loop -- so
|
|
315
|
+
getdescription() on a finished cursor raises ExecutionCompleteError. Pulling
|
|
316
|
+
the first row first makes the empty case a plain StopIteration instead.
|
|
317
|
+
See https://github.com/rogerbinns/apsw/issues/160.
|
|
318
|
+
"""
|
|
309
319
|
cursor = connection.execute(query, params)
|
|
320
|
+
try:
|
|
321
|
+
first = next(cursor)
|
|
322
|
+
except StopIteration:
|
|
323
|
+
LOG.debug("blintdb query returned no rows for params: %s", params)
|
|
324
|
+
return []
|
|
310
325
|
columns = [description[0] for description in cursor.getdescription()]
|
|
311
|
-
|
|
326
|
+
rows = [dict(zip(columns, first))]
|
|
327
|
+
rows.extend(dict(zip(columns, row)) for row in cursor)
|
|
328
|
+
return rows
|
|
312
329
|
|
|
313
330
|
|
|
314
331
|
def _query_project_symbol_matches(
|
|
@@ -9,7 +9,7 @@ import string
|
|
|
9
9
|
import tempfile
|
|
10
10
|
import zipfile
|
|
11
11
|
from enum import Enum
|
|
12
|
-
from importlib.metadata import distribution
|
|
12
|
+
from importlib.metadata import PackageNotFoundError, distribution
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
from typing import Dict
|
|
15
15
|
|
|
@@ -595,9 +595,16 @@ def check_command(cmd):
|
|
|
595
595
|
|
|
596
596
|
def get_version():
|
|
597
597
|
"""
|
|
598
|
-
Returns the version of
|
|
598
|
+
Returns the version of blint.
|
|
599
|
+
|
|
600
|
+
Falls back to "dev" when the package metadata is not available, such as
|
|
601
|
+
running tests directly from a source checkout without an installed
|
|
602
|
+
distribution.
|
|
599
603
|
"""
|
|
600
|
-
|
|
604
|
+
try:
|
|
605
|
+
return distribution("blint").version
|
|
606
|
+
except PackageNotFoundError:
|
|
607
|
+
return "dev"
|
|
601
608
|
|
|
602
609
|
|
|
603
610
|
def cleanup_dict_lief_errors(old_dict):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|