aegis 1.0.0
aegis: ^1.0.0 copied to clipboard
Security audit for Flutter, React Native, KMP and native Android/iOS apps: OWASP MASVS-mapped rules, MAS profile scoring (L1/L2/R), and reports in English and Arabic.
1.0.0 #
The first stable release. From now on aegis follows semantic versioning: the CLI, aegis.yaml, rule ids, the JSON report (formatVersion: 1) and the Dart API only change in a major release. The README's "Stability" section has the details.
- Debug-only code is read from the code's structure, not from the text of nearby lines. Code counts as debug-only inside
if (kDebugMode)/if (!kReleaseMode)(or theelseofif (kReleaseMode)), after a braceless or collectionif, in the true branch ofkDebugMode ? ... : ...(a nullable type such asDevConfig?is not one), insideassert(...), or afterif (!kDebugMode) return;. Before,if (!kDebugMode) { ... }, a line after a debug block, anyassert(above, a comment sayingkDebugModeorisDebuggerAttached()hid the finding. Used byAEG-D02,D03,D08,D10and the debug-tool, UI-leak and protection rules. AEG-D03is no longer turned off by words in the callback's strings or comments (print('cert from provider ignored'); return true;) or by reading the certificate without deciding on it (debugPrint(c.subject); return true;): only a comparison or check in anif/while/for/switchcondition, or another return value, counts. It also reports a callback kept in a variable or function (final cb = (c, h, p) => true; client.badCertificateCallback = cb;), resolved in its own scope like Dart does.- Secret findings (
AEG-D01,AEG-N08,AEG-B06) have their pattern's severity: an AWS key, a private key or a live Stripe key is critical, a Google API key medium. The rule's result takes the worst one, so a leaked AWS key puts the score in the critical band. JSON findings have aseverityfield and SARIF results their own level.--fail-on, Azure annotations and the new-findings sections of the console, Markdown, HTML and PDF reports go by the new findings' own severity (and are sorted by it), so a baselined critical key doesn't make a new high finding fail--fail-on critical. A severity set inaegis.yamlstill wins, for every finding of the rule. - Baselines: an advisory id (CVE, GHSA, OSV and others) is part of the fingerprint, so a new advisory on a package that is already in the baseline is reported as new and
--fail-onfails. Fingerprints of findings without an advisory id are unchanged (baselines and GitHub code-scanning alerts keep matching), and existing baseline files keep working: fingerprints are worked out again when they are read. AEG-D01reads generated Dart files (*.g.dart,*.freezed.dartand others), so a key inenviedoutput is found. Other Dart rules still skip them.AEG-D02: an allowed host must end where the host ends:http://localhost.acme-prod.com,http://example.com.acme.ioandhttp://10.0.2.25are reported;localhost:8080,10.0.2.2and127.0.0.1are not. XML namespace hosts (schemas.android.com,www.w3.organd others) are listed by name.- Breaking, for the Dart API only:
package:aegis/aegis.dartno longer exports internal helpers (ApkContext,IpaContext,SigningCert,findBuiltBinary,findNewestBinary,flutterApkDir,flutterBundleDir,projectOf,parseMenuChoice,ProbeRule,probeRules). The CLI, the GitHub Action and the reports are unchanged. The README's new "Stability" section says what 1.0.0 promises. - The JSON report has
formatVersion: 1: fields can be added under it, never removed or renamed. - Markdown report (shown in GitHub job summaries and Azure build summaries): text from the audited project, such as file names, matched values and custom rule text, can no longer add HTML to it; file locations are code spans a backtick in a file name can't end.
--list-ruleslists the Android resilience probe rules (AEG-R01toAEG-R04) too, and each rule once.- Faster on large React Native and native projects: Kotlin, Java, Swift and JavaScript files are scanned once per audit instead of once per rule, and secret patterns are compiled once. Bluesky's app (312,000 lines of TypeScript): 35 s → 8.5 s.
- Faster on large files: the value flow (since 0.17.0) was quadratic on big Dart files: a 36,000-line file took 19 s, now about 1 s. File searches no longer enter
node_modules,.git,Pods,buildand other tool folders, so a React Native project with 100,000 installed files is audited in half a second instead of 1.5 s. - Windows: finding paths and
exclude:patterns use/for native files too, so excludes work and baselines match across systems; a Firebase rules file named infirebase.jsonis no longer counted twice;--changed-sincereads git's output as UTF-8. CI now tests on Windows. AEG-B14/AEG-I13: OpenSSL support is a table of branches with their end dates, compared with the audit's date, so 4.0 becomes end of life on 2027-05-15 without a new aegis release. A branch newer than the table counts as supported. A test fails when the table hasn't been re-read for six months.AEG-N08also readsAndroidManifest.xml,Info.plistandres/values*/*.xmlfor known key formats, so a Google Maps key in a manifest<meta-data>is reported like the same key in Swift code. Firebase'sgoogle-services.jsonandGoogleService-Info.pliststay out (public by design), as do debug and test source sets.AEG-B06reports a Google API key in the APK's manifest<meta-data>too.AEG-P03andAEG-B08readsigningCertHashesgiven asconst [...],<String>[...]or a variable declared in any file, not only as a[...]literal.AEG-D11knows more numbers: class fields and top-level values that areconst,finalwith a literal, or declaredint/double/bool, and Kotlin, Java and Swift values declared with number types (id: Int,long id,id: Int32) or counts (.size,.length).AEG-D12accepts a value encoded into a variable first (final json = jsonEncode(data); runJavaScript('set($json)')).AEG-D07no longer takes Flutter widget keys (super.key,ValueKey) or map keys for crypto keys nearRandom().- Value flow:
uri.toString().isEmptyis a presence test, not a check of the value; a helper that checks a link before returning it no longer passes link data on. - Docs: every rule has a row in the README rule tables (a test keeps it so),
aegis initwrites a commentedcustom_rulesexample, the native and cross-platform guides list the Dart rules that now read native code, and the Azure Pipelines template has achangedOnlyoption for pull requests. - Fewer false positives, found by auditing well-kept public apps (Now in Android, LocalSend, Ice Cubes, Bluesky):
AEG-I14no longer reports a model property namedcreationDate, the macOS target, or an Expo app that declares its manifest inapp.config.js;AEG-A02no longer reports a library module that leaves backup unset;AEG-N09no longer reports a yes/no flag named like a secret (pin).
0.17.2 #
- Fixed: the HTML, Markdown and console reports crashed when evidence came from a rule without extra metadata (
AEG-B17library loaders,AEG-C04update tools,AEG-C05local unarchiving), since 0.16.0. The benchmark now renders every report format for every app. AEG-D19no longer treats building query parameters as link data (replace(queryParameters: ...), a variable namedqueryParameters); onlyuri.queryParametersread from a Uri counts.- Value flow takes a called function from the calling file first, keeps
_privatefunctions to their own file, and leaves a name declared in several files unknown. Before, a same-named function elsewhere could hide an injection. AEG-D08follows a logged variable only when its text was built from a secret ('password=$password',+, or a project function that returns it pasted in), not when a secret was only an argument (signIn(email, password)) or became a number or a yes/no.- Manual check
AEG-M08is replaced byAEG-D19only when the Dart code reads links through a link API (uni_links,app_links, go_router,onGenerateRoute), and the report says so inAEG-D19's evidence. --changed-sincereads file names outside ASCII correctly (git's quoted paths), and refuses a ref that starts with-.- Native
AEG-D19: handing data to one of the app's own screens (Intent(this, X::class.java)) is not reported; Java'sgetIntent().getData(),getDataString()andgetExtras()are sources. - Custom
patternrules no longer matchaegis.yaml, the baseline or aegis's reports. - Releases wait until pub.dev really serves the new version before the GitHub Action is updated, and the action retries the install for about five minutes.
0.17.1 #
- New
AEG-C05(high): unsafe deserialization in Kotlin, Java, Swift, Objective-C and JavaScript. Data from another app (Intents, links), the network or shared storage that reachesObjectInputStream,XMLDecoder, XStream'sfromXMLorNSKeyedUnarchiver.unarchiveObjectis reported, and so are untypedgetSerializableExtra(name), Jackson default typing andnode-serialize. A class filter (ObjectInputFilter,resolveClass) makes it safe; unsafe calls on the app's own data are listed as evidence. AEG-D19in native code also reports Intent data that reaches a call on the line where it is assigned (val file = File(filesDir, requested)).
0.17.0 #
- Value flow inside a function: aegis now follows
final x = ..., reassignments,for (... in ...), parameters and closures, and knows where data comes from (deep links, typed text, HTTP responses, platform channels, push messages).AEG-D11andAEG-D12also report a query or script variable built from data earlier in the function, and no longer report numbers,intparameters and local constants.- New
AEG-D19(medium, high for L2): deep-link data (uni_links,app_links, go_routerstate) that reacheslaunchUrl, a WebView, a file path or an HTTP request without anif/switchcheck. When it can decide and the app handles no push payloads, it replaces manual checkAEG-M08. AEG-D08also reports a log line built from secrets earlier in the function.
- Custom rules in
aegis.yamlundercustom_rules:: anX-id, a title, a severity, a regex (pattern) or a call with argument conditions (call,receiver,args), and the message and fix. They show in every report, count in the score, and work withaegis:ignore, baselines and--fail-on. --changed-since <git-ref>lists and fails only on findings on lines changed since that ref (uncommitted and new files included); the score still covers the whole project. The GitHub Action does this for pull requests withchanged-only: true.- Found by auditing public vulnerable apps (DVMA, InsecureBankv2, AndroGoat, DVIA-v2, DVRN, the OWASP MASTG demos and their releases):
AEG-D11also reads Kotlin and JavarawQuery,execSQLandcompileStatement, and runs on native Android projects.AEG-D06also finds Kotlin and Java keys written as strings that becomeSecretKeySpecbytes, and fixed IVs, and runs on native Android projects.AEG-A01reads the release source-set manifest (src/release/AndroidManifest.xml).AEG-A15follows flags returned by a helper function in the same file, and uses the nearest declaration of a flags variable.AEG-D16names the value behind.text(_secret.textis_secret).AEG-D12treats the app's own escape helpers as encoding, and no longer splits a call likevalue.substring('javascript:'.length)as a template.AEG-B12asks for RELRO only when the library has relocations; Flutter'slibapp.sohas none and was reported in every Flutter app.AEG-B17: classes that R8 renamed (for example with-repackageclasses) are matched to their owner by the package names in their strings; with no clue they are listed for review instead of reported.AEG-I14ignores header files.AEG-B04is now called "Exported component without permission in the final manifest": without source it lists every exported component, not only those added by libraries.
- Value flow follows calls into the project's own functions and static methods, in any file: a helper that returns link data passes it on, and one that checks it first does not.
AEG-D19also reads Flutter route names (onGenerateRoute), and Kotlin, Java and Swift: Intent extras and data,getQueryParameter,open url:handlers andonOpenURLthat reachloadUrl,startActivity, files or a WebView without a check.- Native code in more rules:
AEG-D07(java.util.Random,kotlin.random.Random,Math.random()near security code),AEG-D15(Jetpack Compose text fields and XMLEditTexts for secrets with suggestions on),AEG-D17(Android and iOS notifications showing codes or tokens),AEG-N03(RSA keys under 2048 bits, symmetric keys under 128 bits) andAEG-D11(Swiftsqlite3_exec/sqlite3_prepare_v2and FMDB with\(x)interpolation). They run on native projects too. AEG-B17reads R8'smapping.txtnext to the APK or in Gradle'soutputs/mapping/<variant>/to name renamed classes.- The benchmark (
dart run benchmark/run.dart) runs weekly in CI.
0.16.0 #
- New rules for sign-in and platform IPC:
AEG-P13(high): unsafe OAuth flows: the implicit flow (response_type=token), aclient_secretsent from the app, and a code flow without PKCE whenflutter_web_authdrives it by hand.AEG-A15(medium):PendingIntentthat is mutable (FLAG_MUTABLE, or no flag below targetSdk 31) and wraps an Intent without an explicit target.AEG-A16(medium): FileProvider paths that share the whole storage (<root-path>, orpath=".","/","").AEG-A17(low): task hijacking setups (customtaskAffinitywithsingleTask, orallowTaskReparenting) while minSdk is below 30.AEG-B15(high): an APK signed with the v1 scheme only while it supports Android before 7.0 (Janus, CVE-2017-13156). App bundles are skipped.AEG-I14(low): the app's own iOS code uses a required-reason API withoutPrivacyInfo.xcprivacy(source and IPA).AEG-C04(high): code loaded from outside the app: dex loaders,System.loadandPathClassLoaderon external or downloaded paths,dlopenoutside the app bundle, andevalof non-literal JavaScript.
- New
AEG-B16(medium): FileProvider paths in an APK's merged resources that share the whole storage, including paths added by libraries. NewAEG-B17(high): app classes in an APK that create aDexClassLoaderorInMemoryDexClassLoader; Play services, Firebase, AndroidX and Flutter are listed as evidence, not reported. AEG-P13also reports hand-built code flows without PKCE (any flow not usingflutter_appauthoroauth2) andAuthorizationCodeGrant(secret: ...).AEG-A15follows flags kept in a variable.AEG-I14also reports a privacy manifest that doesn't declare a category the code uses.AEG-C04lists CodePush, Expo Updates and Shorebird as evidence.AEG-P01also lists emulator and app-virtualization (cloner) checks in its evidence. They are extras and not required for a pass.
0.15.0 #
AEG-C01also looks up native dependencies in OSV: Maven libraries from Gradle files, version catalogs,gradle.lockfileand the Android code of the app's Flutter plugins; npm packages frompackage-lock.jsonandyarn.lock; Swift packages fromPackage.resolved. OSV has no CocoaPods data, so aPodfile.lockis listed as not checked. Dart findings keep their message.AEG-C01now also runs for native Android and iOS projects.- New
AEG-B14(APK, AAB) andAEG-I13(IPA), medium (high for L2): outdated C libraries compiled into the app, from their version strings: end-of-life OpenSSL branches, zlib before 1.2.13, libpng before 1.6.37, libcurl before 8.4.0. All versions found are listed as evidence. The Flutter engine's own copies are skipped. - New
AEG-C03(low): direct dependencies discontinued on pub.dev (with their replacement), and Dart or npm package names one letter away from a popular package (a swapped pair of letters counts as one), which may be a typo or an imitation. The pub.dev lookup is skipped with--offline. AEG-C01resolves Gradle versions written as variables ($okhttpVersion,ext {}blocks,gradle.properties).AEG-B14andAEG-I13also date bundled SQLite by its source id (before 3.39.2: CVE-2022-35737), and treat every OpenSSL branch except the supported 3.5, 4.0 and 4.1 as end of life.
0.14.0 #
- New rules for data leaking through the UI and local storage:
AEG-D15(medium): password, PIN, card or similar fields with keyboard suggestions and autocorrect on, so the keyboard can learn them.AEG-D16(medium): tokens, passwords or keys copied to the clipboard.AEG-D17(low, listed for review):flutter_local_notificationsnotifications that may show codes, balances or tokens on the lock screen.AEG-D18(low):flutter_secure_storageitems saved with an accessibility that isn't_this_device, or as synchronizable.AEG-D20(medium, high for L2): crypto keys the app generates, or key material, written to SharedPreferences, Hive or files instead of the Keystore or Keychain.AEG-P14(low, listed for review): card and identity number fields that accessibility services can read.
AEG-D04also reports Hive boxes named for secrets opened withoutencryptionCipher, and SQLite tables, drift tables, Isar collections and ObjectBox entities with password or token fields when the database isn't encrypted (no SQLCipher, no IsarencryptionKey).AEG-D16andAEG-D20also read Swift, Objective-C, Kotlin and Java:UIPasteboardandClipDatawith secrets, and raw key bytes (key.encoded,rawRepresentation,SecKeyCopyExternalRepresentation) saved withputString,UserDefaultsor file writes. Both now also run for native Android and iOS projects.
0.13.0 #
aegis.yamlcan tellAEG-P01about runtime protection it doesn't know (rasp: packages:) and about libraries whose device checks are not protection (rasp: not_protection:). Names are Dart packages, Android class prefixes or iOS frameworks and class prefixes, and work for source, APK and IPA audits.aegis initwrites the section.AEG-D02now also reportsws://,ftp://andmqtt://URLs, gRPC channels withChannelCredentials.insecure()andmqtt_clientconnections withoutsecure = true, outside debug-only code. Its title is now "Cleartext traffic in code"; existinghttp://findings keep their message, so baselines still match.- New
AEG-D14(medium): a security decision (hasPermission,isAuthenticated,verify...,isRooted, ...) made only insideassert(), which release builds remove. Not reported when the same check is also made outside an assert. - New
AEG-D13(medium): debug tools that ship in release builds. Dart: Alice, DevicePreview, Stetho and Flipper used outside akDebugModecheck (files and folders named dev, debug, mock or staging are skipped), and Chucker withshowOnRelease = true. Gradle: Chucker, Stetho, Flipper and LeakCanary added withimplementationinstead ofdebugImplementation. NewAEG-B13finds them inside an APK or AAB from their manifest entries and classes; Chucker'slibrary-no-oppasses. - New
AEG-D11(high): SQL built by pasting values into the query text in sqflite, drift and sqlite3 (rawQuery,execute,customSelect, thewhere:ofquery, ...), where SQL expects a value (= $id,LIKE '%$q%',IN (...),VALUES (...)). Table and column names and constants are not reported. - New
AEG-D12(medium, high for L2): values pasted without encoding into code run by a WebView (runJavaScript,runJavaScriptReturningResult,evaluateJavascript,loadHtmlString,loadData).jsonEncode,htmlEscapeand similar encodings pass. - New
AEG-P12(critical): Firebase security rules that let anyone, without signing in, read or write all data in Cloud Firestore, Cloud Storage or the Realtime Database, including test-mode rules (request.time < timestamp.date(...)) until they expire. NewAEG-P15(medium, high for L2): rules that let any signed-in user reach all data, or let anyone write to a path. The rules files are found throughfirebase.jsonand by name; when the app uses these services but the rules are not in the repository,AEG-P12lists that for review. These rules add findings to existing reports; use--update-baselineto accept them. - IPA audits now read Swift's short string literals (up to 15 bytes), which the compiler keeps inside arm64 instructions instead of the string table. An app's own check such as
name.contains("FridaGadget")is now found byAEG-P01and listed in the iOS binary evidence. Checked on real release builds. - MASWE coverage lists every OWASP MASWE weakness with the aegis rules that check it. It is generated from the rules (
dart run tool/maswe_coverage.dart) and a test keeps it current. - 31 rules that cited no MASWE weakness now do, so their findings show it in the HTML, Markdown and JSON reports: the native and platform checks (
AEG-A11toAEG-A14,AEG-N01toAEG-N09,AEG-P11,AEG-I12), the IPA checks (AEG-I06toAEG-I09),AEG-B12, the runtime scenarios (AEG-R09,AEG-R10) and the resilience probe results (AEG-R01toAEG-R08). - The GitHub Action retries installing aegis when pub.dev is briefly unreachable, and a release now updates the action only once pub.dev serves the new version.
0.12.1 #
- The README opens with a screenshot of the HTML report, and pub.dev shows it as the package screenshot.
- New GitHub Action:
uses: khaledSayedAbdellah/aegis-action@v1runs aegis and reports to code scanning, annotations, the job summary and a reports artifact, with the score and counts as step outputs. It is kept inaction/and published with each release.
0.12.0 #
AEG-P01(no runtime protection) no longer checks only for a few RASP packages inpubspec.yaml. It looks at Android and iOS separately and counts a Dart package only when the code imports it: known RASP packages, packages named for it, and any package whose own native code checks for root or jailbreak. It also finds native SDKs (freeRASP, RootBeer, IOSSecuritySuite, DTTJailbreakDetection, Approov, Zimperium, DexGuard, DexProtector) declared in Gradle, CocoaPods, Swift Package Manager or package.json and used by the native code, and the app's own root/jailbreak, debugger and hooking checks in Dart, Kotlin/Java or Swift/Objective-C. Own checks that cover only some of these are reported with what is missing, and declared but unused protection is reported as such. What was found is listed as evidence.AEG-P01now also runs for native Android and iOS projects.AEG-P01now also runs when only an APK, AAB or IPA is audited. It reads the DEX files, the native libraries and the iOS binaries and attributes each root, jailbreak, debugger and hooking check to the code that holds it: a RASP SDK (passes), the app's own classes or compiled Dart code (judged like own checks in source), or a crash or analytics library.- Root and jailbreak checks of crash and analytics libraries (Sentry, Firebase Crashlytics, Bugsnag, Instabug, Datadog, AppsFlyer, Adjust, New Relic, App Center, Embrace) are never counted as runtime protection, in source or in a binary: they only label that library's reports. When they are the only checks the finding says so. When a binary's checks are in renamed or unidentifiable code next to one of these libraries, the rule gives no verdict and lists them for review. An encrypted App Store IPA makes the rule incomplete.
- To read the native code of packages, aegis now also finds them in the pub cache at the versions in
pubspec.lock, and runsflutter pub getordart pub getwhen the dependencies are not resolved (with--enforce-lockfilewhen a lock file exists, and--offlinein an offline audit). The new--no-pub-getflag turns this off. The evidence section says when pub get ran and which packages could not be read.
0.11.0 #
aegis runalso saves a short PDF report named<mode>-<profile>-<date>.pdf(for exampleapk-L2+R-2026-11-12.pdf) next to the other reports. It contains the score, the category scores and the open findings only, new and previously known, each with its details. The newpdfformat is on by default forrunand available with-f pdfeverywhere. It is printed in the report language with a headless Chrome, Edge, Chromium or Brave, or the browser inAEGIS_BROWSER/CHROME_PATH. Without a browser the PDF is skipped with a message and the run continues.- The HTML report has print styles: light colors, A4 pages and no cards split across pages.
0.10.2 #
- The README starts with a table of contents linking every section. The translation catalog and extended MASVS analysis sections now come before License.
0.10.1 #
- The README installs aegis from pub.dev (
dart pub global activate aegis), shows the pub.dev version, pub points and CI badges, and documents the release steps. Installing from GitHub or a local clone remains available. - Releases are published from version tags through pub.dev's GitHub Actions publishing.
0.10.0 #
Breaking changes #
- Remove
run --mode alland automatic artifact selection.runnow asks forcode,apk,aaboripawhen no mode is supplied; non-interactive runs must pass--mode. Explicit artifact overrides must match the chosen mode. - Ask IPA runtime audits to choose iOS Simulator or a physical iPhone/iPad. Add
--ios-target simulator|devicefor explicit/CI selection, isolate the chosen environment from the other YAML settings, reject conflicting CLI options and never fall back to another target. Static-only--no-proberuns need no target. - Keep terminal messages, menus and console summaries in English regardless of
--lang, YAML or system locale. HTML and Markdown report files retain the selected language.
Added and changed #
- Discover React Native/Expo and other JavaScript/TypeScript source trees plus KMP shared/target sources. Add lexical secret/logging, TLS, WebView, crypto and direct sensitive-storage checks, preserve native bridge/configuration inspection, and report source inventory and unsupported inputs without awarding score for discovery.
- Build native Xcode Simulator apps automatically, matching IPA identity and version with explicit ambiguity handling, verified output receipts and optional project/scheme/configuration settings.
- Discover standalone Kotlin/Java/Swift/Objective-C projects, inspect native modules and platform configuration, reuse native security checks and add redacted source-secret/sensitive-logging rules. Keep Flutter-only rules out of native audits and preserve incomplete coverage for unreadable inputs.
- Label scores from incomplete audits as provisional beside the score in HTML, Markdown and terminal output, with matching JSON/SARIF flags; preserve scoring and verified failures.
- Group supporting security evidence into one expandable HTML card or Markdown heading per rule, preserving each observation and source without changing findings or JSON data.
- Show verified Simulator jailbreak/signing failure verdicts before coverage limitations in report summaries and probe evidence, consistently in Arabic and English.
- Prevent reuse of incomplete Simulator app bundles after failed or interrupted automatic builds, including disk-full failures during Flutter's final copy.
- Observe both UIApplication and UIScene background transitions with bounded polling on iOS Simulator.
- Add six generic platform protection check families (
AEG-P11,AEG-N05–AEG-N07,AEG-I12,AEG-A14) for screen exposure, backup policy, key access, iOS Universal Links, WebViews and Android obscured-touch filtering. Collect bounded launch-time facts without app-specific inputs and leave host security unchanged. Without a requested runtime observation their output is evidence only: outside the score, never a pass, and not an incomplete audit, so static audits still complete under--strictand--update-baseline. A concrete finding fails the rule and stays in the score even with partial coverage; a requested observation that returned nothing or stopped at a collector bound stays incomplete. The probe records which automatic observers it started (platformObserverAttemptsin JSON), so an observer that failed is distinguished from one that never ran: the optional Android instrumented observer is requested only once it started, which happens only when the app kept running under the Frida check. - Add the
evidenceOnlyrule status for rules that finish with review evidence and no verdict (the platform protection rules,AEG-T01, compiled-reference-only native checks, a finishedAEG-R09scenario without interception). It is outside the score and MASVS coverage, is never a pass, and does not make the audit incomplete. JSON reports it as"status": "evidenceOnly"with asummary.evidenceOnlycount; the console lists these rules under their own heading. - Extend offline IPA analysis with built-in Objective-C relationships, Swift context/type-reference metadata, conservative nominal-name demangling and expanded protection references. Reports retain provenance and localized extraction limits; no external backend or runtime verdict changes.
- Show explicit Simulator jailbreak/signing verdicts and scoped failure findings when execution continues; preserve full-iOS coverage limitations and strict incompleteness.
- Add AEG-A11–A13, N01–N04, I10–I11, B12 and T01: final-manifest link/permission checks, bounded domain association verification, native API/configuration analysis, entitlement/ATS review, ELF hardening and tracker inventory.
- Add bilingual evidence outside scoring/coverage, and bounded ZIP decompression for binary inspection.
- Add opt-in R09/R10 runtime scenario orchestration, certificate-substitution capture and redacted synthetic-marker collection; absent evidence and unsupported channels remain incomplete. The scenario runs a command and tool paths taken from the project's
aegis.yaml, so it executes only whenaegis run --runtime-scenariois passed;enabled: truein the file alone never runs it. A finished scenario ends R09 as failed (interception accepted) or evidence only (silence is never a pinning pass); it stays incomplete only when a requested phase, the baseline or cleanup did not finish. A scenario part with nothing configured (hostsfor R09,marker_envfor R10) is not applicable rather than incomplete. - Include all new configuration in
init; keep terminal output English and report translations in ARB. - Add device-independent IPA Mach-O checks for PIE, executable-memory requests and source debug entries, plus a separate static resilience-reference inventory. Inspect bundled frameworks and extensions; keep runtime verdicts distinct and report encrypted, missing or unreadable evidence.
0.9.0 #
- Make
setupask for Android, iOS or Both.--androidprepares both Android AVDs and bundletool;--iosstays iOS-only;--bothruns independent stages in Android-first order and reports unsupported iOS on non-Mac hosts without undoing Android setup. Keep--aabas an Android alias; CI must select a platform explicitly. - Honor explicit Simulator flavor/target changes for automatically discovered products, and retain verified build inputs for reuse. Correct release installation references and declare synthetic credential fixtures for Pub validation.
- Move report, rule and setup/doctor translations to validated ARB catalogs with generated Dart accessors. Translate iOS probe evidence, limitations, finding excerpts and incomplete/skip reasons in Arabic reports while preserving English JSON evidence and original code/tool output.
- Add partial Xcode Simulator jailbreak-file-indicator and ad-hoc signing-metadata experiments, with verified controls, separate observations and explicit Arabic/English limitations. Full jailbreak/signing checks remain incomplete in strict mode; no macOS security settings are changed.
aegis initnow writes every supported YAML setting, with defaults and editable placeholders for unknown paths, device IDs, flavors, and fingerprints. Unfilled placeholders are treated as unset.- Automatically build missing or mismatched Flutter iOS Simulator apps during
run/probe, using the IPA version/build, verifying the generated platform and identity, and retaining build logs. Add optionalios_simulator_flavorandios_simulator_targetsettings toinit. - Audit iOS IPAs with
--ipaoraegis run --mode ipa. The iOS runtime probe uses Xcode on dedicated devices for jailbreak, Frida, LLDB, and signing identity changes. Configureios_simulatorandios_simulator_appinaegis.yamlto run LLDB and Frida automatically on a matching Simulator build. aegis setup --iosinstalls Frida and the pinned iOS Gadget. A provisioned Development IPA can be probed for Frida on a stock USB-connected device configured asios_control_device.aegis setupprepares separate rooted and unrooted Android 14 emulators. APK and AAB audits use both by default. The runtime probe verifies each test condition and reports continued execution under verified conditions as a process-level finding under MAS-R. Android self-exit records provide process-level blocking evidence. Optional app events provide a verdict on a specific operation.- AAB probes accept a signed companion APK, a bundletool
.apksarchive or a folder with one device-specific set of signed APKs. Aegis verifies the first-install APKs for each emulator and can require an expected app-signing certificate fingerprint. Setprobe_apkandprobe_cert_sha256inaegis.yamlor override them on the command line.aegis initincludes both settings as active keys with editable placeholders. --strictrejects an incomplete requested probe under any MAS profile. Reports distinguish incomplete checks from checks outside the profile or checks that do not apply.- The binary audit rejects unreadable Android manifests and resolves the network security configuration referenced by the manifest, including resource aliases and configuration variants.
0.7.0 #
- The resilience probe is part of
aegis run.aegis run --mode apk|aab|allruns the probe on the emulator first, then the static audit, and writes one report with both. Its results are new rules AEG-R01 (root, RESILIENCE-1), AEG-R02 (Frida, RESILIENCE-4), AEG-R03 (debugger, RESILIENCE-4) and AEG-R04 (re-signed copy, RESILIENCE-2), profile MAS-R: a gap is an ordinary finding that lowers the score, enters the baseline and triggersfail_on; an inconclusive check, a skipped probe or an app that does not stay alive on a clean emulator is not applicable, with the reason. Findings point to<app>!/runtime, so the baseline matches across builds. - Every report format has a probe section: the baseline, each check's result, what was observed, its MASVS/MASTG controls and rule, or why the probe was skipped. JSON has a
probeobject. - The APK/AAB comes from aegis.yaml. New keys
apk:andaab:(relative to the project, or absolute).--mode apk/aabrequire them and stop with the line to add, or the build command when the file is missing;--mode allusesapk:, elseaab:, else audits the code only.aegis runno longer picks the newest file inbuild/by itself (build names change with flavors and versions).aegis initwrites both keys as commented examples. - Missing probe tools, an unreadable package name or an AAB that won't convert: the probe is skipped with the reason and the static audit continues.
--no-probeskips it on purpose. Plainaegis(CI) never runs the probe, even with--apk. aegis probestays as a probe-only shortcut. Without a path it usesapk:/aab:from the project's aegis.yaml instead of searchingbuild/.
0.6.0 #
-
aegis probe: verify an app's anti-tampering on an emulator. It installs the app on theaegis-probeAVD, checks it stays alive on a clean emulator (the baseline gate), then applies each standard OWASP MASTG resilience condition — root (MASTG-TEST-0048), debugger (0045), Frida instrumentation (0046) and a re-signed build (0047) — and reports whether the app's own protection reacted (blocked), did not (notBlocked) or the check was inconclusive, mapped to MASVS-RESILIENCE. Vendor-agnostic: it sets the standard condition and observes, it does not try to defeat a specific protection. A gap is a finding only under a profile that includes MAS-R. Observations come only from the device (process state, logcat) and only from the app's own process, never assumed; on a crash after re-signing it shows the app's crash line and whether it points to an integrity check or a signature-bound service. Takes an APK or an AAB (converted to a universal APK with bundletool). Reads the profile from the app's own project (--project/--profileto override), stops frida-server before the baseline and after the Frida check, and ends with a static line saying whether the build is obfuscated. -
aegis doctorandaegis setup: prepare the toolchain for the resilience probe.doctorchecks Java, the Android SDK and its command-line/platform/build tools, the emulator and an Android 14 image, theaegis-probeAVD, Python, Frida andfrida-server(and bundletool with--aab), reporting each as present, installable or install-it-yourself; it changes nothing.setupinstalls the missing ones and skips the present ones, so a second run does nothing. The Android SDK and JDK are resolved the way Flutter resolves them (flutter config, then the usual locations, thenflutter doctor -v), and are never installed by aegis. What aegis installs lives under~/.aegis; the SDK packages are installed with onesdkmanagercall that asks you to accept the licenses. Downloads (frida-server, bundletool) are pinned and checked against their SHA-256; a mismatch is deleted and the step fails.aegis setup --removedeletes what aegis installed under~/.aegisand theaegis-probeAVD, never your Java or Android SDK. Resolved paths are cached in~/.aegis/tools.json. New dependency:archive(unpacksfrida-server's.xz).
0.5.0 #
aegis init: asks what kind of app it is (or takes--profile/--lang) and writes aegis.yaml.aegis run [--mode all|code|apk|aab]: friendly defaults for people, not CI. It finds the newest release APK/AAB underbuild/app/outputs/by itself, prints the report, writesbuild/aegis-report.htmlin the project and opens it in the browser when run in a terminal (--no-opento skip), and follows the system language when aegis.yaml has nolang:.- Plain
aegiswith options is unchanged, for scripts and CI. - AEG-D01: values assigned to names ending in
Hash,Digest,Sha256,ChecksumorFingerprintare hashes, not secrets (storing a password's hash instead of the password is the fix D01 asks for). - New score. The worst open problem picks the band (none 100, low 90–99, medium 70–89, high 40–69, critical 0–39) and the grade (A, A, B/C, D, F); inside the band every failing rule lowers the score (
band start + width × e^(−penalty/20), penalty critical 10 / high 6 / medium 3 / low 1, more findings of one rule up to ×2). Apps with the same worst problem but more other problems now score lower, more profile rules show up in the number, and fixing anything never lowers it. Scores are lower than with 0.4 while a high or critical problem is open: checkmin_score. - Reports say which rules keep the score in its band, the score once they are fixed, and the single fixes worth most points. JSON score:
worstSeverity,band,blockingRules,afterBlockingFixed,gains,penalty. - Categories use the same formula and are coloured by their worst open problem (console, HTML, Markdown 🔴🟠🟡✅), listing their failing rules; JSON categories get
failedRuleIdsandworstSeverity. - MASVS coverage table (Markdown, Azure summary tab): a control is ✅ only when all its rules passed and ❌ when one failed (known findings included), with the failing rules in bold. It used to show ✅ for every control that was merely checked. JSON controls get
failedRules.
0.4.0 #
- Android App Bundles:
--apkalso takes an.aab. aegis decodes the protobuf manifest and res/xml files (aapt2 format) in pure Dart, scans the base and feature modules' code, resource table and assets, and skipsBUNDLE-METADATA/. All APK rules apply. - AEG-B10 knows that Google Play re-signs bundles: it fails when freeRASP's
signingCertHashesonly has the upload key, and is not applicable when the upload key is not listed. - Reports label the binary as "App bundle (AAB)" and mark its certificate as the upload key; JSON
binary.kindisAPKorAAB. - Binary rule titles, descriptions and findings say "AAB" instead of "APK" when a bundle is audited.
- Baselines:
x.aab!/...andx.apk!/...findings match each other.
0.3.0 #
- Baselines:
--update-baselinerecords today's findings inaegis-baseline.json; later runs report new, known and fixed findings separately and--fail-ononly reacts to new ones. Matching ignores line numbers and the APK file name. Known findings still count in the score. --baseline <file>,--ignore-baselineandbaseline:inaegis.yaml.- JSON findings carry a stable
fingerprint; SARIF results carrypartialFingerprintsandbaselineState. - Azure Pipelines:
ci/azure-pipelines/aegis-steps.ymlsteps template (install from pub.dev/git/path, build annotations, summary tab, report artifact, optional Scans tab and Advanced Security) and a full example pipeline. -f azureprints Azure Pipelines annotations for new findings and marks the step "succeeded with issues" when they are below--fail-on.- A run without
--apkno longer lists the baseline's APK findings as fixed.
0.2.0 #
--apk: audit the release APK, alone or together with the source. aegis reads the zip, binary XML manifests and v1/v2/v3 signing certificates itself, with no external tools.- 11 APK rules (AEG-B01..B11): debug builds, merged manifest, library-added components and permissions, build-time secrets in libapp.so / dex / resources / assets, real obfuscation, debug certificate, freeRASP hash mismatch, SDK levels.
- Source and APK findings are de-duplicated.
- Reports show the APK signing certificate SHA-256 in Base64 (the value freeRASP expects).
- Git and path dependencies (your own packages) are scanned with the app (
scan_packages, on by default); reports list them. - Debug-only guards such as
if (config.enableLogging)are recognized, not justkDebugMode. - AEG-P08 is "not applicable" instead of passing when no
authenticate()call is visible. - Passed rules show a "healthy" title (e.g. "App Transport Security is enabled").
0.1.0 #
- First release.
- 36 rules across protection correctness (freeRASP wiring/config/reactions, App Check, pinning, local_auth, screen protection, obfuscation), Android, iOS, Dart code and dependencies.
- OWASP MAS profiles (L1, L2, R) with presets, severity caps and MASVS coverage.
- Console, JSON, Markdown, HTML and SARIF reports in English and Arabic.
aegis.yamlconfiguration and inlineaegis:ignoresuppression.
