Skip to content

Add logarchive URL / link-open artifact - #2311

Merged
abrignoni merged 4 commits into
abrignoni:mainfrom
danjethh:add-url-open-artifact
Oct 14, 2026
Merged

abrignoni merged 4 commits into
abrignoni:mainfrom
danjethh:add-url-open-artifact

Conversation

@danjethh

@danjethh danjethh commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds a dependent unified-log artifact that records URL / link-open events — a class iLEAPP's logarchive.py did not previously cover.

Markers:

  • UIOpenURLAction — SpringBoard dispatching a URL-open action
  • openURLContexts / "Received URL to open in openURLContexts" — a UIScene URL open
  • no registered handler for URL scheme — a failed/unhandled scheme open

Notes / forensic caveats:

  • iOS redacts the URL value in the unified log as <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 + 52 openURLContexts + 2 unregistered-scheme) and 24 on the 26.2 capture (UIOpenURLAction; openURLContexts not 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 the logarchive module first, _artifacts_table_records WHERE fragment).

@github-actions

Copy link
Copy Markdown

Thanks for the contribution!

The changed artifact modules cite public research images in their sample_data, so a maintainer can generate the test fixtures from those images. Nothing is needed from you, though you are welcome to add the fixtures yourself with admin/test/scripts/make_test_data.py.

  • logarchive.py: cites abe_ios16, ctf2020_ios12, dexter_ios18, felix23_ios16, iphone12_ios18; a maintainer can generate the fixture.

@github-actions github-actions Bot added the fixture-needed Cites a public image; a maintainer can generate the fixture label Sep 29, 2026

@abrignoni abrignoni left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. 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.
  2. 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.
  3. 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.

…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).
@danjethh

danjethh commented Sep 29, 2026 via email

Copy link
Copy Markdown
Contributor Author

…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]>
@abrignoni
abrignoni merged commit 04bda2e into abrignoni:main Oct 14, 2026
11 checks passed
@abrignoni

Copy link
Copy Markdown
Owner

Thanks @danjethh. Your collection fix works. I pushed a commit on top so this can go in:

  • Merged main and moved the three markers inside the new closing parenthesis of the collection query.
  • Renamed it to "logarchive URL and link opens". The / made iLEAPP rename the report file.
  • Rewrote the description and notes from runs on four of our images and added sample_data (iOS 26.6: 5 rows, 17.2.1: 2, 14.3: 1, 17.3: 0).

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 <private>. And the Process Image Path column is often SpringBoard sending the action, with the receiving app named in the message.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixture-needed Cites a public image; a maintainer can generate the fixture

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants