Skip to content
Back to skills

Ios Insecure Storage

ASecurity

Enumerate app sandbox local storage (plist/NSUserDefaults/SQLite/Core Data/Cache.db/Realm) for plaintext credentials, tokens and PII. Tier 1. Use when a device is available for dynamic data inspection. Needs a jailbroken device (or resigned-gadget + objection).

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securitysqltestingapidatabasebackend

Works with

  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill ios-insecure-storage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ios Insecure Storage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ios Insecure Storage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-ios-insecure-storage/badge)](https://www.skillsdirectory.com/skills/anandjogawade-ios-insecure-storage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ios-insecure-storage
description: Enumerate app sandbox local storage (plist/NSUserDefaults/SQLite/Core Data/Cache.db/Realm) for plaintext credentials, tokens and PII. Tier 1. Use when a device is available for dynamic data inspection. Needs a jailbroken device (or resigned-gadget + objection).
---

# iOS Insecure Local Data Storage

Hunt for secrets written in cleartext to the app sandbox. Weak storage means creds/tokens recoverable from a lost, backed-up, or forensically imaged device (MASVS-STORAGE).

## Trigger phrases
`ios insecure storage, nsuserdefaults, cache.db, ios sqlite, core data, realm ios, plist secrets, app sandbox data`

## Method
Exercise the app (log in, use sensitive features) first so data is written, then:
1. **Find the data container:** objection `env` (gives `Documents`/`Library`/`tmp` paths) or on device `find /private/var/mobile/Containers/Data/Application -iname "*<AppName>*"`. Root: `/private/var/mobile/Containers/Data/Application/{UUID}`.
2. **NSUserDefaults:** `Library/Preferences/<bundleID>.plist`; objection `ios nsuserdefaults get`. Grep for tokens/flags/PII.
3. **Plists:** `find . -name "*.plist"`; objection `ios plist cat <path>` (or `plutil -convert xml1`). 
4. **SQLite / Core Data:** `find . \( -name "*.sqlite" -o -name "*.db" \)`; Core Data under `Library/Application Support`; open with `sqlite3 <file> ".tables"` / `.dump`, or objection `sqlite connect <file>`.
5. **NSURLSession cache:** `Library/Caches/<bundleID>/Cache.db` — frequently leaks full HTTP requests/responses including bearer tokens and PII (`sqlite3 Cache.db "select request_key,hex(receiver_data) from cfurl_cache_response limit 5;"`).
6. **Realm / others:** `find . -name "*.realm*"` (check whether encrypted); Couchbase/YapDatabase under Application Support.
7. **Grep everything:** pull the container (`scp -P 2222 -r root@127.0.0.1:<path> .`) and `grep -rniE "token|password|secret|bearer|session|AIza|AKIA|\"pin\"" .`.

## Modern / rare techniques
- **Cache.db token leakage** is one of the highest-yield iOS findings — always check it even when the app "uses Keychain."
- **Unencrypted Realm** with a key stored in NSUserDefaults/plist = effectively plaintext.
- **`tmp/` and `Library/WebKit`** can retain uploaded files / webview caches with sensitive content.

## Escalation / chaining
Recovered tokens → replay against backend in `ios-network-backend-testing`; Keychain-specific items → `ios-keychain-analysis`; shared-container data → `ios-appgroup-keychain-sharing-ipc`; backgrounding/pasteboard leaks → `ios-pasteboard-snapshot-leakage`.

## Backend & tooling
objection/frida/`sqlite3`/`scp` from Kali (WSL+Kali / Kali-SSH / HexStrike), SSH via `iproxy 2222 22`. **Requires a jailbroken device** (filesystem access) or a resigned+gadget build with objection for the sandbox-reachable paths.

## Verification (background, before reporting)
Re-confirm a leaked secret is live (e.g., the token actually authenticates to the API) and reproduce the write on a clean container before marking CONFIRMED; redact values in the report.

## Evidence
Capture the file path, the extracted (redacted) secret, the query/objection command, and proof the data is usable. Remediation: store secrets only in Keychain with strong accessibility, encrypt local DBs, disable response caching for authenticated requests, avoid secrets in NSUserDefaults/plist. MASVS: MASVS-STORAGE-1/2.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.