Repository navigation
Add logarchive URL / link-open artifact - #2311
Conversation
…texts / unregistered scheme)
|
Thanks for the contribution! The changed artifact modules cite public research images in their
|
abrignoni
left a comment
There was a problem hiding this comment.
Thanks for this, @danjethh. URL opens are a class we didn't cover, and the notes about <private> redaction and leaving out -canOpenURL: are exactly the kind of caveat examiners need.
One blocker before this can merge: as written, the artifact will always come back empty in a real run.
The dependent logarchive_* artifacts don't query the full logarchive table. They filter logarchive_artifacts, which logarchive_artifacts() builds first from its own list of markers (around line 944). Every dependent artifact adds its markers in both places. For example, CarPlay has '%CarPlay session vehicle inform%' in that list and in its own filter. This PR only adds the markers to the new filter, so those lines never make it into the table it reads.
I checked this with the PR's own SQL on a few constructed lines: the collection step kept none of the three URL-open lines, the new artifact returned 0 rows, and the same WHERE clause on the full logarchive table returned all 3. My guess is the 88 and 24 counts came from querying logarchive directly rather than from an iLEAPP run. Could you confirm by running iLEAPP itself on your two captures?
The fix is to add the three markers to the query in logarchive_artifacts():
OR event_message LIKE '%UIOpenURLAction%'
OR event_message LIKE '%openURLContexts%'
OR event_message LIKE '%no registered handler for URL scheme%'A few smaller things for the notes and description once the rows come through:
- Rows are log lines, not opens. One URL open can log both a
UIOpenURLActionline and anopenURLContextsline, so the row count isn't a count of opens. Please say that in the notes. - Scope the redaction claim to what was tested. "iOS redacts the URL value as
<private>" reads as true for every version. It was observed on 26.2 and 26.6, so something like "the URL value was redacted as<private>on the tested images (iOS 26.2 and 26.6)" is safer. The description should carry the same limit. openURLContextsis a broad match. It's a UIKit method name, so any process that logs that name will match, not only actual opens. After a real run, please look through what that marker picks up and say in the notes whether anything besides URL opens came through.
Happy to re-run this against our logarchive test images once it's updated. Good stuff, and thanks for the clear write-up.
…turns rows Reviewer (abrignoni) was right: the markers were only in the dependent filter, so logarchive_artifacts() never collected the rows and logarchive_urlopens came back empty. Add the three markers to the logarchive_artifacts() collection query, and correct the notes/description (rows are log lines not opens; redaction scoped to the tested iOS 26.2/26.6 images; openURLContexts breadth caveat).
|
Thanks, Alexis.
you were exactly right, and good catch. The markers were only in the dependent filter, so logarchive_artifacts() never collected the rows and the artifact came back empty.
And yes, my 88/24 counts came from querying logarchive directly, not from an iLEAPP run.
I've added the three markers to the logarchive_artifacts() collection query and re-ran the real two-stage chain (logarchive → logarchive_artifacts → logarchive_urlopens) on our iOS 26.6 capture:
collection kept logarchive_urlopens
before (markers only in the dependent filter) 0 0
after (markers in the collection query) 44 44
Breakdown after the fix: UIOpenURLAction 19, openURLContexts 25, no registered handler 0 — with the 44 -canOpenURL: capability-check lines and 200 unrelated noise lines correctly not returned.
I also updated the notes/description for your three points: rows are log lines not opens (one open can log both a UIOpenURLAction and an openURLContexts line); the <private> redaction is now scoped to the tested images (iOS 26.2 and 26.6); and on the 26.6 capture openURLContexts matched only Received URL to open in openURLContexts <private> (all genuine opens, from the Family/Screen Time process), with a caveat that it's a broad UIKit name that could match non-opens on other images.
Ready for a re-run against your logarchive test images whenever you have a moment. Thanks again for the careful review.
… On Sep 29, 2026, at 13:53, Brigs ***@***.***> wrote:
@abrignoni requested changes on this pull request.
Thanks for this, @danjethh <https://github.com/danjethh>. URL opens are a class we didn't cover, and the notes about <private> redaction and leaving out -canOpenURL: are exactly the kind of caveat examiners need.
One blocker before this can merge: as written, the artifact will always come back empty in a real run.
The dependent logarchive_* artifacts don't query the full logarchive table. They filter logarchive_artifacts, which logarchive_artifacts() builds first from its own list of markers (around line 944). Every dependent artifact adds its markers in both places. For example, CarPlay has '%CarPlay session vehicle inform%' in that list and in its own filter. This PR only adds the markers to the new filter, so those lines never make it into the table it reads.
I checked this with the PR's own SQL on a few constructed lines: the collection step kept none of the three URL-open lines, the new artifact returned 0 rows, and the same WHERE clause on the full logarchive table returned all 3. My guess is the 88 and 24 counts came from querying logarchive directly rather than from an iLEAPP run. Could you confirm by running iLEAPP itself on your two captures?
The fix is to add the three markers to the query in logarchive_artifacts():
OR event_message LIKE '%UIOpenURLAction%'
OR event_message LIKE '%openURLContexts%'
OR event_message LIKE '%no registered handler for URL scheme%'
A few smaller things for the notes and description once the rows come through:
Rows are log lines, not opens. One URL open can log both a UIOpenURLAction line and an openURLContexts line, so the row count isn't a count of opens. Please say that in the notes.
Scope the redaction claim to what was tested. "iOS redacts the URL value as <private>" reads as true for every version. It was observed on 26.2 and 26.6, so something like "the URL value was redacted as <private> on the tested images (iOS 26.2 and 26.6)" is safer. The description should carry the same limit.
openURLContexts is a broad match. It's a UIKit method name, so any process that logs that name will match, not only actual opens. After a real run, please look through what that marker picks up and say in the notes whether anything besides URL opens came through.
Happy to re-run this against our logarchive test images once it's updated. Good stuff, and thanks for the clear write-up.
—
Reply to this email directly, view it on GitHub <#2311?email_source=notifications&email_token=AGHU3WDI64IOQ6IXPGTLK5D5RPZJXA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMZVGYZTQMRWGI22M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#pullrequestreview-5356382625>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGHU3WHEKJLIGEWS5BDFSQ35RPZJXAVCNFSNUABFKJSXA33TNF2G64TZHMZDEOJYGQZDEOBTHNEXG43VMU5TKNRSGUYTCOJYGUY2C5QC>.
You are receiving this because you were mentioned.
|
…URL opens notes Resolve the conflict with main's collection query (markers now sit inside its closing parenthesis). Rename the artifact to "logarchive URL and link opens" so the report file name keeps its title. Rewrite the description and notes from runs on four corpus images and add sample_data. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks @danjethh. Your collection fix works. I pushed a commit on top so this can go in:
Two things the runs turned up that are worth knowing. On iOS 26.6 a Notes widget launch logged its URL in clear on a com.apple.chrono line, so the URL is not always Hope this helps. |
Adds a dependent unified-log artifact that records URL / link-open events — a class iLEAPP's
logarchive.pydid not previously cover.Markers:
UIOpenURLAction— SpringBoard dispatching a URL-open actionopenURLContexts/ "Received URL to open in openURLContexts" — a UIScene URL openno registered handler for URL scheme— a failed/unhandled scheme openNotes / forensic caveats:
<private>, so this records that a URL/link was opened, when, and which process handled it — not the URL string. Correlate with network destinations or Safari history to resolve the target.-canOpenURL:lines are capability checks (an app probing whether a scheme is installed), not opens, and are intentionally excluded.Validation: tested against two real sysdiagnose captures — iOS 26.2 (iPhone 14 Pro Max, build 23C55) and iOS 26.6 (iPhone 15 Plus, build 23G71). 88 matches on the 26.6 capture (34
UIOpenURLAction+ 52openURLContexts+ 2 unregistered-scheme) and 24 on the 26.2 capture (UIOpenURLAction;openURLContextsnot present on that build), with zero-canOpenURL:/ WebKit-lifecycle false positives. (These UIKit markers exist on earlier iOS but were not tested there.)Follows the existing dependent-artifact pattern (
paths: None, requires thelogarchivemodule first,_artifacts_table_recordsWHERE fragment).