iOS readiness, story 2 (static checks). mobsfscan already covers ATS,
Keychain accessibility, weak hashes/ciphers, TLS and web views; this
adds what it does not.
- Own semgrep rules in new packs (rules/cra_semgrep_swift.yaml,
rules/cra_semgrep_objc.yaml, both in RULE_PACKS):
cra-ai-14-swift-secret-in-userdefaults (UserDefaults.standard or a
suite, directly or through a local), cra-ai-14-swift-secret-in-appstorage
(@AppStorage) and cra-ai-14-objc-secret-in-userdefaults (a regex rule:
semgrep has no Objective-C parser). A key or value naming a password,
token, key, credential or session id, never a literal flag or number.
Test cases beside them (semgrep --test: 20/20). Mapped to cra-ai-14;
ids come out bare through #463's bare_rule_id, which a test pins.
- pipeline/ios_config.rs (scanner ios-config, stage 4): every Info.plist
(Apple's DOCTYPE allowed) and the pbxproj INFOPLIST_KEY_* settings,
outside Pods/Carthage/build:
- ios-custom-url-scheme (Low, CWE-939): CFBundleURLTypes schemes;
- ios-sensitive-permission (Info, CWE-250): one per access granted
(location, camera, microphone, contacts, photos, calendars,
Bluetooth, local network, health, motion, speech, tracking);
- ios-permission-without-usage-string (Low): a request in Swift or
Objective-C no usage string covers, at the call; judged only when
the tree holds a plist or Xcode project (not an Expo app.json).
The first two are an inventory, bound to no control: cra-ai-2 and
cra-ai-17 stay not code-checkable.
- Dashboard label "iOS-App-Einstellungen"; docs (scanning, tools).
- Nightly fixture mobile/ios-app-settings (all six findings); the
ios-insecure baseline gains the password Store.swift keeps in
UserDefaults, a true positive mobsfscan missed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
NuGet SBOM entries carried no license: none of the files they come from
names one. Fill it in after the NuGet components are merged (#467):
- local first: the .nuspec of a restored package; <license
type="expression"> as SPDX, type="file" as LicenseRef-file, an old
<licenseUrl> mapped to SPDX for well-known license pages, else kept
- then nuget.org: registration leaf (gzip) -> catalogEntry (inline or
linked on api.nuget.org) -> licenseExpression / licenseFile / licenseUrl
- only real ids at exact versions (no ranges, no DLL-metadata names);
versions normalised as nuget.org files them (6.2.0.0 -> 6.2.0, 2.0 ->
2.0.0)
- ids a nuget.config maps to another feed are never sent; a tree whose
nuget.config lists another feed without a mapping is not looked up
- through guarded_net, 8 at once, 10 s per request, 60 s and 300
uncached packages per scan; failures stay empty, one warning per scan
- cached across tenants in the admin database (nuget_licenses, TTL: a
year for a license, a week for none)
- NUGET_LICENSE_LOOKUP=false turns the nuget.org step off
Closes#467
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB