feat: add Frida instrumentation support (#1359)
* feat: add Frida instrumentation support * fix: resolve Frida CI checks * test: cover Frida contract validation branches * docs: link Frida instrumentation guide * fix(frida): handle cancellation cleanup safely * fix(frida): address PR review findings * fix(frida): preserve resume and message observations * fix(ci): use canonical registry for rolldown * fix(frida): declare foreign code effects * fix(frida): retain failed startup resources for cleanup retries Keep failed startup session and spawn handles owned until detach, resume, and remote lease cleanup complete. Serialize retries and release each remote reference once. Await CLI provider cleanup while preserving the primary failure and any completed observations. Add regressions for retained startup resources, concurrent cleanup, shared remote leases, and CLI cleanup outcomes. Validation: 41 focused tests pass on the PR head and its latest-main integration; serial static and docs checks pass. Real Linux Frida 17.23.2 workflows and the native spawn/controlled-failure cleanup probe pass. Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) --------- Co-authored-by: N0zoM1z0 <1705004398@qq.com>
This commit is contained in:
co-authored by
N0zoM1z0
parent
0b7145361e
commit
4a4ae9b2b9
@@ -1414,6 +1414,18 @@ npm run evidence:check
|
||||
The records preserve unsupported and unverified coverage as explicit unknowns.
|
||||
Run the matching real-tool prerequisites described in this guide.
|
||||
|
||||
## Frida instrumentation
|
||||
|
||||
`npm run verify:frida` builds REA, spawns a short-lived local Node.js fixture,
|
||||
loads a harmless marker script before resuming it, captures the message, and
|
||||
detaches. This lane requires Linux on the REA host and the optional Frida
|
||||
binding; it does not need a Frida server or a caller-selected process. To run
|
||||
the separate remote attach lane, pass `-- --address HOST:PORT --pid PID` for an
|
||||
explicitly selected process. Optional remote flags are `--token`,
|
||||
`--certificate`, `--origin`, and `--keepalive-interval` (seconds); authentication values
|
||||
are not written to files or included in the report. Mock tests do not establish
|
||||
real device/server compatibility.
|
||||
|
||||
### Offline WASM artifacts
|
||||
|
||||
`npm run verify:wasm:artifact -- --require-tools` uses an absolute
|
||||
|
||||
Reference in New Issue
Block a user