@ericrisco/rsc 4.0.5 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/manifest.json +78 -84
- package/package.json +1 -1
- package/scripts/lib/default-skill-floor.js +5 -1
- package/scripts/lib/domains.js +1 -1
- package/scripts/lib/recommend.js +1 -1
- package/scripts/lib/retired-skills.js +4 -0
- package/scripts/skill-migration-brief.md +1 -1
- package/skills/accessibility/evals/README.md +1 -1
- package/skills/accessibility/evals/cases.yaml +1 -1
- package/skills/agent-safety/SKILL.md +2 -2
- package/skills/agent-safety/evals/README.md +1 -1
- package/skills/agent-safety/evals/cases.yaml +1 -1
- package/skills/analyze/evals/README.md +1 -1
- package/skills/analyze/evals/cases.yaml +2 -2
- package/skills/angular/SKILL.md +1 -1
- package/skills/api-connector-builder/SKILL.md +1 -1
- package/skills/api-design/SKILL.md +3 -3
- package/skills/api-design/evals/cases.yaml +1 -1
- package/skills/automation-strategy/SKILL.md +1 -1
- package/skills/automation-strategy/evals/README.md +1 -1
- package/skills/automation-strategy/evals/cases.yaml +2 -2
- package/skills/automation-strategy/references/orchestration-and-antipatterns.md +1 -1
- package/skills/aws-essentials/SKILL.md +3 -3
- package/skills/aws-essentials/evals/cases.yaml +2 -2
- package/skills/backups/SKILL.md +2 -2
- package/skills/backups/evals/cases.yaml +2 -2
- package/skills/bash-scripting/SKILL.md +1 -1
- package/skills/building-agents/SKILL.md +2 -2
- package/skills/building-agents/evals/cases.yaml +2 -2
- package/skills/chrome-extension/SKILL.md +1 -1
- package/skills/cloudflare/SKILL.md +1 -1
- package/skills/code-review/SKILL.md +2 -2
- package/skills/code-review/evals/cases.yaml +2 -2
- package/skills/compliance/SKILL.md +3 -3
- package/skills/compliance/evals/cases.yaml +1 -1
- package/skills/constitution/SKILL.md +2 -2
- package/skills/constitution/evals/README.md +2 -2
- package/skills/constitution/evals/cases.yaml +2 -2
- package/skills/constitution/references/constitution-template.md +1 -1
- package/skills/cpp/SKILL.md +2 -2
- package/skills/cpp/evals/README.md +1 -1
- package/skills/cpp/evals/cases.yaml +2 -2
- package/skills/csharp-dotnet/SKILL.md +3 -3
- package/skills/csharp-dotnet/evals/cases.yaml +1 -1
- package/skills/csharp-dotnet/references/aspnetcore.md +1 -1
- package/skills/data-policy/SKILL.md +2 -2
- package/skills/data-policy/evals/README.md +1 -1
- package/skills/data-policy/evals/cases.yaml +1 -1
- package/skills/debug/SKILL.md +1 -1
- package/skills/debug/evals/README.md +1 -1
- package/skills/decision-challenge/SKILL.md +2 -2
- package/skills/decision-challenge/evals/cases.yaml +1 -1
- package/skills/deployment/SKILL.md +2 -2
- package/skills/deployment/evals/README.md +1 -1
- package/skills/deployment/evals/cases.yaml +2 -2
- package/skills/django/SKILL.md +2 -2
- package/skills/django/evals/README.md +1 -1
- package/skills/django/evals/cases.yaml +1 -1
- package/skills/django/references/security.md +1 -1
- package/skills/docker/SKILL.md +3 -3
- package/skills/docker/evals/cases.yaml +1 -1
- package/skills/dynamodb/SKILL.md +2 -2
- package/skills/electron/SKILL.md +1 -1
- package/skills/electron/references/packaging-and-updates.md +1 -1
- package/skills/email-connector/SKILL.md +2 -2
- package/skills/email-deliverability/SKILL.md +1 -1
- package/skills/error-handling/SKILL.md +1 -1
- package/skills/expo/SKILL.md +2 -2
- package/skills/fastapi/SKILL.md +4 -4
- package/skills/fastapi/evals/README.md +2 -2
- package/skills/fastapi/evals/cases.yaml +2 -2
- package/skills/fastapi/references/security.md +2 -2
- package/skills/firebase/SKILL.md +1 -1
- package/skills/flutter/SKILL.md +1 -1
- package/skills/flutter/evals/cases.yaml +2 -2
- package/skills/fly-io/SKILL.md +1 -1
- package/skills/gamedev-multiplayer/SKILL.md +1 -1
- package/skills/gamedev-multiplayer/evals/README.md +1 -1
- package/skills/gamedev-multiplayer/evals/cases.yaml +2 -2
- package/skills/gamedev-shipping/SKILL.md +1 -1
- package/skills/gcp-essentials/SKILL.md +2 -2
- package/skills/gcp-essentials/evals/README.md +1 -1
- package/skills/gcp-essentials/evals/cases.yaml +2 -2
- package/skills/gdpr-privacy/SKILL.md +2 -2
- package/skills/gdpr-privacy/evals/cases.yaml +1 -1
- package/skills/github-actions/SKILL.md +2 -2
- package/skills/go/SKILL.md +4 -4
- package/skills/go/evals/README.md +1 -1
- package/skills/go/evals/cases.yaml +2 -2
- package/skills/google-workspace/SKILL.md +2 -2
- package/skills/hetzner/SKILL.md +1 -1
- package/skills/htmx/SKILL.md +4 -4
- package/skills/htmx/evals/cases.yaml +2 -2
- package/skills/implement/SKILL.md +1 -1
- package/skills/init/SKILL.md +2 -2
- package/skills/init/evals/cases.yaml +2 -2
- package/skills/init/references/discovery.md +1 -1
- package/skills/init/references/recommend-skills.md +5 -5
- package/skills/java/SKILL.md +3 -3
- package/skills/java/evals/README.md +1 -1
- package/skills/java/evals/cases.yaml +2 -2
- package/skills/laravel/SKILL.md +3 -3
- package/skills/laravel/evals/README.md +1 -1
- package/skills/laravel/evals/cases.yaml +1 -1
- package/skills/marketing/evals/README.md +1 -1
- package/skills/marketing/evals/cases.yaml +1 -1
- package/skills/mongodb/SKILL.md +2 -2
- package/skills/mongodb/evals/README.md +1 -1
- package/skills/mongodb/evals/cases.yaml +2 -2
- package/skills/nextjs/SKILL.md +3 -3
- package/skills/nextjs/evals/cases.yaml +2 -2
- package/skills/nextjs/references/security.md +2 -2
- package/skills/notion-connector/SKILL.md +3 -3
- package/skills/notion-connector/evals/README.md +1 -1
- package/skills/notion-connector/evals/cases.yaml +2 -2
- package/skills/php/SKILL.md +4 -4
- package/skills/php/evals/README.md +1 -1
- package/skills/php/evals/cases.yaml +1 -1
- package/skills/plan/evals/README.md +1 -1
- package/skills/postgresdb/SKILL.md +1 -1
- package/skills/postgresdb/evals/README.md +1 -1
- package/skills/postgresdb/evals/cases.yaml +2 -2
- package/skills/presentations/evals/README.md +1 -1
- package/skills/python/SKILL.md +3 -3
- package/skills/python/evals/README.md +1 -1
- package/skills/python/evals/cases.yaml +2 -2
- package/skills/rag/scripts/verify.sh +1 -1
- package/skills/review/SKILL.md +2 -2
- package/skills/review/evals/cases.yaml +3 -3
- package/skills/ruby/SKILL.md +1 -1
- package/skills/rust/SKILL.md +2 -2
- package/skills/rust/evals/README.md +1 -1
- package/skills/rust/evals/cases.yaml +2 -2
- package/skills/security-audit/SKILL.md +186 -0
- package/skills/security-audit/evals/cases.yaml +95 -0
- package/skills/security-audit/references/auditor-safety.md +69 -0
- package/skills/security-audit/references/classes/README.md +225 -0
- package/skills/security-audit/references/classes/ai-and-llm.md +247 -0
- package/skills/security-audit/references/classes/client-side.md +181 -0
- package/skills/security-audit/references/classes/cloud-and-deployment.md +167 -0
- package/skills/security-audit/references/classes/data-isolation.md +161 -0
- package/skills/security-audit/references/classes/desktop-mobile-ipc.md +167 -0
- package/skills/security-audit/references/classes/memory-and-binary.md +230 -0
- package/skills/security-audit/references/classes/protocols-and-messaging.md +151 -0
- package/skills/security-audit/references/classes/resource-exhaustion.md +141 -0
- package/skills/security-audit/references/classes/supply-chain.md +147 -0
- package/skills/security-audit/references/classes/web-and-auth.md +238 -0
- package/skills/security-audit/references/coverage-ledger.md +172 -0
- package/skills/security-audit/references/fixes-by-stack.md +972 -0
- package/skills/security-audit/references/fixing.md +200 -0
- package/skills/security-audit/references/hunting.md +146 -0
- package/skills/security-audit/references/isolated-execution.md +85 -0
- package/skills/security-audit/references/platforms.md +650 -0
- package/skills/security-audit/references/reconnaissance.md +73 -0
- package/skills/security-audit/references/resuming.md +55 -0
- package/skills/security-audit/references/scanners.md +347 -0
- package/skills/{secure-coding → security-audit}/references/secrets-and-supply-chain.md +78 -34
- package/skills/security-audit/references/secrets-discipline.md +173 -0
- package/skills/{secure-coding → security-audit}/references/threat-modeling.md +80 -32
- package/skills/security-audit/references/verification.md +118 -0
- package/skills/security-audit/schema/findings.schema.json +178 -0
- package/skills/security-audit/scripts/render-report.mjs +311 -0
- package/skills/security-audit/scripts/validate-findings.mjs +508 -0
- package/skills/skill-scout/scripts/verify.sh +1 -1
- package/skills/source-grounded-development/evals/cases.yaml +1 -1
- package/skills/specify/evals/README.md +1 -1
- package/skills/spring-boot/SKILL.md +3 -3
- package/skills/spring-boot/evals/README.md +1 -1
- package/skills/spring-boot/evals/cases.yaml +1 -1
- package/skills/spring-boot/references/security.md +1 -1
- package/skills/stripe/SKILL.md +2 -2
- package/skills/suggest/evals/cases.yaml +2 -2
- package/skills/supabase/SKILL.md +1 -1
- package/skills/tauri/SKILL.md +2 -2
- package/skills/testing-go/SKILL.md +1 -1
- package/skills/typescript/SKILL.md +2 -2
- package/skills/verify/SKILL.md +3 -3
- package/skills/verify/evals/README.md +2 -2
- package/skills/verify/evals/cases.yaml +2 -2
- package/skills/vue-nuxt/SKILL.md +2 -2
- package/skills/webhooks/SKILL.md +2 -2
- package/skills/wordpress/SKILL.md +2 -2
- package/skills/wordpress/evals/README.md +1 -1
- package/skills/wordpress/evals/cases.yaml +1 -1
- package/skills/worktrees/evals/README.md +1 -1
- package/targets/clone-bootstrap.mjs +1 -1
- package/targets/commands.js +1 -1
- package/skills/secure-coding/SKILL.md +0 -336
- package/skills/secure-coding/evals/README.md +0 -68
- package/skills/secure-coding/evals/cases.yaml +0 -55
- package/skills/secure-coding/references/authn-authz.md +0 -249
- package/skills/secure-coding/references/owasp-by-stack.md +0 -574
- package/skills/secure-coding/scripts/verify.sh +0 -208
- package/skills/security-scan/SKILL.md +0 -219
- package/skills/security-scan/evals/README.md +0 -14
- package/skills/security-scan/evals/cases.yaml +0 -50
- package/skills/security-scan/references/tools.md +0 -97
- package/skills/security-scan/references/triage.md +0 -92
- package/skills/security-scan/scripts/verify.sh +0 -108
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Cloud and deployment classes
|
|
2
|
+
|
|
3
|
+
Load when: the repo describes how software runs: cloud IAM, infrastructure as code, containers,
|
|
4
|
+
Kubernetes, a service mesh, serverless or edge functions, ingress, buckets, managed services or
|
|
5
|
+
config that differs per environment. Verdict rules: [`../verification.md`](../verification.md).
|
|
6
|
+
|
|
7
|
+
The question: once deployed, does each component end up with the identity, network reach,
|
|
8
|
+
isolation, secrets and policy its authors meant it to have? Repository files usually describe
|
|
9
|
+
intent, not the running state, so keep defects you can confirm from source apart from facts only
|
|
10
|
+
the owner can observe. Build and promotion trust lives in `supply-chain.md`; proxy semantics in
|
|
11
|
+
`web-and-auth.md`; tenant scoping of data stores in `data-isolation.md`.
|
|
12
|
+
|
|
13
|
+
## Ground rules
|
|
14
|
+
|
|
15
|
+
- **A manifest is not proof of live exposure.** Work out which environment uses it, which overlays
|
|
16
|
+
and defaults alter it, and whether the path is active at all.
|
|
17
|
+
- **Tie every identity to what it can do.** For each workload identity, list operations and
|
|
18
|
+
resources. A wide policy only becomes a finding when input from a less-trusted party can aim it
|
|
19
|
+
at an action that party should not get.
|
|
20
|
+
- **A control counts only when you can see it wired in.** Ingress, sidecars, admission webhooks,
|
|
21
|
+
metadata endpoints and proxies are real boundaries if their configuration and attachment are in
|
|
22
|
+
view.
|
|
23
|
+
- **Referencing a secret is not leaking it.** A leak needs someone with less trust who can read it:
|
|
24
|
+
through a log, an output, an artifact, a shared volume, or a fallback that exposes it.
|
|
25
|
+
- **Defaults depend on version.** Look up the behaviour of the provider and orchestrator at the
|
|
26
|
+
version pinned in the repo. Do not assume a public IP, an open firewall, a reachable metadata
|
|
27
|
+
endpoint or an absent admission hook.
|
|
28
|
+
- Local validation is limited to rendering (`helm template`, `kustomize build`, `terraform plan`
|
|
29
|
+
against stub providers), policy evaluation, inspecting namespaces inside a throwaway fixture, or
|
|
30
|
+
an emulator with fake identities. No probing of live endpoints, no changes to shared cloud
|
|
31
|
+
resources.
|
|
32
|
+
|
|
33
|
+
## Workload identity and IAM
|
|
34
|
+
|
|
35
|
+
### `workload-identity-overreach`
|
|
36
|
+
|
|
37
|
+
The identity attached to a pod, function, edge worker, VM or node reaches accounts, tenants, APIs
|
|
38
|
+
or resources outside its job, and something in an untrusted request or job chooses which one.
|
|
39
|
+
Look at: IAM statements with `*` in resource or action, missing conditions, service-account
|
|
40
|
+
annotations, the mapping from namespace to cloud role, and fallbacks to node or default
|
|
41
|
+
credentials when the intended identity is missing.
|
|
42
|
+
|
|
43
|
+
### `cross-account-role-confusion`
|
|
44
|
+
|
|
45
|
+
Assume-role, token exchange, workload federation, external ids or resource policies trust a claim
|
|
46
|
+
without pinning it to the expected source account, repository, namespace, workload or audience.
|
|
47
|
+
Look at: trust policies with wildcard principals or subjects (`repo:org/*`), no
|
|
48
|
+
`sts:ExternalId`, OIDC federation with no `sub` or `aud` condition. Show both sides: the trust
|
|
49
|
+
policy and the claim the caller can shape.
|
|
50
|
+
|
|
51
|
+
### `metadata-trusted-as-authz`
|
|
52
|
+
|
|
53
|
+
The application believes identity data it receives (headers, tags, labels, account ids, object
|
|
54
|
+
metadata) without checking that the control plane or a trusted proxy produced it. Look at
|
|
55
|
+
handlers that read an identity header or an object tag and act on it. Cloud IAM and the app's own
|
|
56
|
+
authorisation are separate checks; passing one does not imply the other.
|
|
57
|
+
|
|
58
|
+
## Network, ingress and control plane
|
|
59
|
+
|
|
60
|
+
### `management-plane-exposure`
|
|
61
|
+
|
|
62
|
+
Something exposes an internal surface (admin or debug routes, metrics, node or control-plane APIs,
|
|
63
|
+
internal services) to a network with less trust. Usual carriers: ingress rules, `type:
|
|
64
|
+
LoadBalancer` or `NodePort`, security groups open to `0.0.0.0/0`, load-balancer annotations,
|
|
65
|
+
compose `ports:`, a server bound to `0.0.0.0`. A public route defined in the repo that lands on a
|
|
66
|
+
sensitive handler can be `confirmed`. "No network policy is visible" alone is `needs_validation`.
|
|
67
|
+
|
|
68
|
+
### `proxy-mesh-bypass`
|
|
69
|
+
|
|
70
|
+
The backend trusts forwarded identity, an mTLS subject or auth metadata from peers that did not
|
|
71
|
+
come through the intended ingress or sidecar, or a spare port, health route or legacy path goes
|
|
72
|
+
around the mesh. Check whether ingress strips those headers, who can reach the pod directly, and
|
|
73
|
+
whether the app fails open when the sidecar is absent.
|
|
74
|
+
|
|
75
|
+
### `metadata-service-reachability`
|
|
76
|
+
|
|
77
|
+
User-chosen URLs, hosts or protocols get to the instance or container metadata endpoint, a
|
|
78
|
+
control-plane socket or an internal API that carries the workload's credentials. Trace parsing and
|
|
79
|
+
redirects with core `ssrf`. In this file, settle the deployment facts: network path, metadata
|
|
80
|
+
version (IMDSv1 or v2, hop limit), and which identity answers.
|
|
81
|
+
|
|
82
|
+
## Containers and orchestration
|
|
83
|
+
|
|
84
|
+
### `container-escape-config`
|
|
85
|
+
|
|
86
|
+
A workload with less trust can request settings that hand it node or control-plane power:
|
|
87
|
+
`privileged: true`, extra capabilities, `hostPID`/`hostNetwork`/`hostIPC`, `hostPath` volumes,
|
|
88
|
+
devices, the Docker or containerd socket, an auto-mounted service-account token. A missing seccomp
|
|
89
|
+
profile or writable root filesystem is hardening only, unless a reachable operation actually
|
|
90
|
+
crosses the boundary.
|
|
91
|
+
|
|
92
|
+
### `admission-path-gap`
|
|
93
|
+
|
|
94
|
+
Policy on image identity, namespaces, resources, secrets or privilege is enforced on the main
|
|
95
|
+
deploy route, but another route skips it: a second controller, a job, an upgrade, a restore, a
|
|
96
|
+
compatibility path. Show that alternate route and the object it really creates.
|
|
97
|
+
|
|
98
|
+
### `label-trust-confusion`
|
|
99
|
+
|
|
100
|
+
Network policy, admission, secret access or workload identity is granted by matching labels,
|
|
101
|
+
annotations, names or namespaces, and someone with less trust can set those values. Put side by
|
|
102
|
+
side who writes the selector and what a match unlocks.
|
|
103
|
+
|
|
104
|
+
## Configuration and secrets over time
|
|
105
|
+
|
|
106
|
+
### `config-precedence-drift`
|
|
107
|
+
|
|
108
|
+
An overlay, chart default, environment variable, CLI flag, feature gate, injected sidecar or
|
|
109
|
+
regional setting turns off authentication, TLS, tenant scoping or auditing in a real environment.
|
|
110
|
+
Render the final config for every environment that is maintained, not only the base. Search for
|
|
111
|
+
`AUTH_DISABLED`, `insecure: true`, `tls: false`, `skipVerify`.
|
|
112
|
+
|
|
113
|
+
### `workload-secret-exposure`
|
|
114
|
+
|
|
115
|
+
A secret ends up somewhere another workload or tenant can read: process arguments, crash dumps,
|
|
116
|
+
logs, environment shared across containers, a widely mounted volume, build output, service
|
|
117
|
+
discovery, a read API. Confirm what the secret is and what it unlocks. An endpoint URL or a key identifier grants nothing on its own.
|
|
118
|
+
|
|
119
|
+
### `credential-renewal-fallback`
|
|
120
|
+
|
|
121
|
+
When mounting, refreshing, rotating or revoking a workload credential fails, the old credential
|
|
122
|
+
keeps working, or the app falls back to a weaker identity mode. Check startup, readiness probes,
|
|
123
|
+
reconnect logic and long-lived cached clients.
|
|
124
|
+
|
|
125
|
+
## Managed storage, events and edge
|
|
126
|
+
|
|
127
|
+
### `bucket-signed-url-policy`
|
|
128
|
+
|
|
129
|
+
Bucket or container policies, object key layout, CDN origins or presigned URLs do not pin who may
|
|
130
|
+
act, which operation, which key prefix, for which audience and until when. Look at public-read
|
|
131
|
+
ACLs, presigned URLs with long lifetimes or wildcard keys, listing and versioning operations, and
|
|
132
|
+
uploads, not just downloads.
|
|
133
|
+
|
|
134
|
+
### `event-source-spoofing`
|
|
135
|
+
|
|
136
|
+
A function or queue worker takes the sender's identity from fields in the event body instead of
|
|
137
|
+
verifying the provider's signed envelope, topic or subscription, account, region and replay
|
|
138
|
+
protection. Compare the push path with pull, retry and dead-letter handling.
|
|
139
|
+
|
|
140
|
+
### `edge-origin-mismatch`
|
|
141
|
+
|
|
142
|
+
Code at the edge or in a serverless runtime relies on secrets, APIs, a filesystem, isolation or a
|
|
143
|
+
tenant policy that differ from the origin runtime, and falling back to origin changes authority or
|
|
144
|
+
caching. Find the setting that decides which path runs.
|
|
145
|
+
|
|
146
|
+
## Moves that work across this file
|
|
147
|
+
|
|
148
|
+
- Render all maintained environments into one matrix: exposed ports, workload identity, network
|
|
149
|
+
peers, mounted secrets, cloud resources touched. Each difference needs a policy reason or an
|
|
150
|
+
owner.
|
|
151
|
+
- Pick a request, object, label or event from a less-trusted source and follow it into cloud
|
|
152
|
+
policy. End at the credential that performs the final call and the condition that should have
|
|
153
|
+
narrowed it.
|
|
154
|
+
- Compare the normal deploy with restore, migration, failover, node maintenance and local or
|
|
155
|
+
emulator setups. Ask what happens when the mesh, admission, identity provider, secret store or
|
|
156
|
+
policy engine is down.
|
|
157
|
+
|
|
158
|
+
## Proof checklist
|
|
159
|
+
|
|
160
|
+
1. Show which source path is active and what object is effectively deployed. When you cannot, the
|
|
161
|
+
verdict is `needs_validation` and names the rendered manifest or attachment the owner must look
|
|
162
|
+
at.
|
|
163
|
+
2. Name the less-trusted caller or workload, the identity used, the selector it influences, the
|
|
164
|
+
resource hit and the operation or disclosure it should not have.
|
|
165
|
+
3. `confirmed` needs a full trace through active source and a concrete result at the boundary.
|
|
166
|
+
Anything else is `needs_validation` with the exact missing fact (deployed policy, attached
|
|
167
|
+
identity, overlay, network path or drift). See [`../verification.md`](../verification.md).
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Data isolation and lifecycle
|
|
2
|
+
|
|
3
|
+
Load when the target holds data split by tenant or behind access control, keeps derived copies (search, index, cache, analytics), hands out links to objects, has export, import or restore, runs schema migrations, or promises deletion, revocation or retention. Endpoint-level access control is a general web class; provider-level storage policy is a cloud class.
|
|
4
|
+
|
|
5
|
+
The method here: pick one data item and follow it through every copy and every state change. Split large targets: primary store, blob storage, search and cache, logs and analytics, backups and exports, migrations, deletion and revocation.
|
|
6
|
+
|
|
7
|
+
## Ground rules for this domain
|
|
8
|
+
|
|
9
|
+
- A `tenant_id` or `owner_id` column is not isolation. For each read and write path, find what actually enforces it: a query predicate, a key prefix, a storage path, a policy, a row-level rule.
|
|
10
|
+
- Follow the copies. Primary data that is protected can be exposed in search, cache, analytics, exports, previews, logs, replicas and backups, which often have different ACLs and retention.
|
|
11
|
+
- Deletion and revocation are contracts about the whole lifecycle. Look at every copy: the live one, its history, and those sitting in caches, indexes, exports, queues and restored snapshots, as far as the product's promise reaches.
|
|
12
|
+
- Wanting more privacy or shorter retention does not make something a vulnerability. You need an explicit access boundary or a deletion/revocation promise, plus an unauthorized reader or a later operation that breaks it.
|
|
13
|
+
- Prove with two dummy tenants and non-sensitive fixtures in a local setup ([../isolated-execution.md](../isolated-execution.md)); never real user data. Verdicts follow [../verification.md](../verification.md). If external storage policy, retention, CDN behaviour, replica lag or backup access decides it, the finding is needs-validation.
|
|
14
|
+
|
|
15
|
+
## Tenant and object isolation
|
|
16
|
+
|
|
17
|
+
### `missing-tenant-scope`
|
|
18
|
+
|
|
19
|
+
**What.** A query (single read, list, count, update, delete, bulk operation) picks an object without tying it to the authenticated tenant or owner, or takes that identity from the request body.
|
|
20
|
+
|
|
21
|
+
**Where to look.** `findById(id)` with no tenant filter, `WHERE id = ?` without `AND tenant_id = ?`, `tenantId` read from the body, nested routes (`/orgs/:a/projects/:b`) that check `a` but load `b` globally. Compare direct lookup, nested relations, background jobs, admin tools, importers and legacy endpoints.
|
|
22
|
+
|
|
23
|
+
**How to prove.** Tenant A reads or changes tenant B's dummy record through the same local service method.
|
|
24
|
+
|
|
25
|
+
### `key-namespace-collision`
|
|
26
|
+
|
|
27
|
+
**What.** Cache keys, object paths, unique constraints, search document IDs, temp file names or dedup keys leave out the tenant or environment, so two principals hit the same logical key even though their records have separate owners.
|
|
28
|
+
|
|
29
|
+
**Where to look.** `cache.get("user:" + email)`, `s3://bucket/uploads/{filename}`, `UNIQUE(slug)` without tenant, `/tmp/{name}`, idempotency keys without a tenant prefix, shared caches across staging and production.
|
|
30
|
+
|
|
31
|
+
**How to prove.** Two dummy principals overwrite or read each other's entry through the colliding key.
|
|
32
|
+
|
|
33
|
+
### `policy-query-divergence`
|
|
34
|
+
|
|
35
|
+
**What.** Row-level security, ORM default scopes, authorization filters and raw or bypass clients apply different predicates.
|
|
36
|
+
|
|
37
|
+
**Where to look.** Joins and aggregates that skip the scope, aliases and views, transactions run as a service role, `unscoped()` / `withoutGlobalScopes` / admin clients, error paths where the tenant context is missing and the filter becomes empty.
|
|
38
|
+
|
|
39
|
+
**How to prove.** Cite the intended policy and the path that disagrees; show the cross-tenant row coming back locally.
|
|
40
|
+
|
|
41
|
+
### `signed-reference-overreach`
|
|
42
|
+
|
|
43
|
+
**What.** Object keys, attachment IDs, version IDs, share links or signed URLs allow operations or namespaces beyond what the issuer could do, or stay valid after the underlying ACL changes.
|
|
44
|
+
|
|
45
|
+
**Where to look.** Presigned URLs signed for a prefix rather than one key, write permission when read was intended, missing version binding, long expiry, links not revoked on ACL change, attachment IDs guessable across tenants.
|
|
46
|
+
|
|
47
|
+
**How to prove.** A local signed reference used for a different object, operation or tenant, or after access was removed. Each reference should bind operation, exact object and version, audience, expiry and tenant.
|
|
48
|
+
|
|
49
|
+
## Derived copies and disclosure
|
|
50
|
+
|
|
51
|
+
### `derived-copy-acl-drift`
|
|
52
|
+
|
|
53
|
+
**What.** The primary record's ACL or lifecycle changes, but a searchable, cached, embedded (vector), thumbnail, feed, preview or index copy is not invalidated.
|
|
54
|
+
|
|
55
|
+
**Where to look.** Search indexes filtered only at ingestion, vector stores without per-query ACL filters, CDN-cached previews, RSS feeds, materialized views.
|
|
56
|
+
|
|
57
|
+
**How to prove.** Change the ACL or delete the record locally, then retrieve it through the derived copy. Filtering has to happen at retrieval, not only at ingestion and invalidation.
|
|
58
|
+
|
|
59
|
+
### `secondary-sink-disclosure`
|
|
60
|
+
|
|
61
|
+
**What.** Private content or credentials are written into analytics, logs, traces or diagnostics that have wider access, longer retention or mixed tenants.
|
|
62
|
+
|
|
63
|
+
**Where to look.** Request/response body logging, exception reports with payloads, tracing span attributes, analytics events with free text, support dashboards.
|
|
64
|
+
|
|
65
|
+
**How to prove.** Name the data class and a realistic reader who should not see it.
|
|
66
|
+
|
|
67
|
+
**Only a note.** Field names, public identifiers, or content visible only to operators under the intended policy.
|
|
68
|
+
|
|
69
|
+
### `existence-oracle`
|
|
70
|
+
|
|
71
|
+
**What.** Counts, filters, sort order, error messages, unique-constraint errors, timing, notification behaviour or existence checks reveal state of protected objects or accounts.
|
|
72
|
+
|
|
73
|
+
**Where to look.** "Email already registered", different 403 vs 404, filter counts over hidden records, sorting by a hidden field, search result totals.
|
|
74
|
+
|
|
75
|
+
**How to prove.** A concrete confidential predicate and an observable difference that answers it.
|
|
76
|
+
|
|
77
|
+
**Only a note.** General response variance with no confidential predicate behind it.
|
|
78
|
+
|
|
79
|
+
## Export, backup, restore and migration
|
|
80
|
+
|
|
81
|
+
### `export-scope-expansion`
|
|
82
|
+
|
|
83
|
+
**What.** The produced artifact (a report, a backup, a snapshot, a data-portability bundle, an export) carries other tenants, fields the requester cannot see, soft-deleted rows, secrets, or history above the requester's access.
|
|
84
|
+
|
|
85
|
+
**Where to look.** Export jobs that select by tenant but skip per-field or per-item authorization, report builders using a service role, download links for the finished file without their own check.
|
|
86
|
+
|
|
87
|
+
**How to prove.** A local export for dummy tenant A that contains B's data or hidden fields. Two checks are needed: each item is authorized after the selection query, and fetching the finished file is authorized on its own.
|
|
88
|
+
|
|
89
|
+
### `import-restore-authority`
|
|
90
|
+
|
|
91
|
+
**What.** Restore or import skips the usual checks (ownership, ACL, schema, validation, uniqueness), replaces resources that already exist, or creates records inside a tenant the requester has no write access to.
|
|
92
|
+
|
|
93
|
+
**Where to look.** Importers that trust `id`, `owner_id` or `tenant_id` from the archive; restore endpoints that upsert by ID.
|
|
94
|
+
|
|
95
|
+
**How to prove.** A crafted local archive that lands records in or over another tenant. Archive content is untrusted input; authorize the resulting operation, not the archive's claimed origin.
|
|
96
|
+
|
|
97
|
+
### `migration-default-confusion`
|
|
98
|
+
|
|
99
|
+
**What.** Old records have no tenant, ACL or lifecycle field, IDs from two systems collide, or during a partial rollout new and old readers apply different defaults.
|
|
100
|
+
|
|
101
|
+
**Where to look.** Backfills that leave `NULL` tenant (and code that treats `NULL` as "visible to all"), dual-read/dual-write phases, rollback paths, migrations resumed after failure.
|
|
102
|
+
|
|
103
|
+
**How to prove.** A local migration fixture where a legacy row becomes visible or writable across the boundary.
|
|
104
|
+
|
|
105
|
+
### `backup-replica-scope-drift`
|
|
106
|
+
|
|
107
|
+
**What.** Encryption keys, storage accounts, cross-region replicas, restore environments or support snapshots have a wider identity or tenant scope than the primary data.
|
|
108
|
+
|
|
109
|
+
**Where to look.** Infrastructure code for replica and backup buckets, key policies, snapshot sharing settings, restore environments with broad access.
|
|
110
|
+
|
|
111
|
+
**How to prove.** Source can only confirm policy that lives in the repo. Hosted access and retention are needs-validation, with the exact check for the owner.
|
|
112
|
+
|
|
113
|
+
## Deletion, revocation and lifecycle
|
|
114
|
+
|
|
115
|
+
### `soft-delete-bypass`
|
|
116
|
+
|
|
117
|
+
**What.** Direct lookup, search, relation traversal, object links, background processors or restore ignore the deleted/revoked flag and return or act on the record.
|
|
118
|
+
|
|
119
|
+
**Where to look.** Queries missing `deleted_at IS NULL`, relation loaders that skip default scopes, jobs that load by ID. Also: can a soft-deleted identifier (username, slug, email) be registered again while old references still point to it?
|
|
120
|
+
|
|
121
|
+
**How to prove.** Delete a dummy record locally and reach it through the bypassing path.
|
|
122
|
+
|
|
123
|
+
### `stale-authorization`
|
|
124
|
+
|
|
125
|
+
**What.** Someone loses access (removed from a group, ACL tightened, consent withdrawn, role lowered, secret revoked), but sessions, caches, subscriptions, queued jobs or materialized data keep authorizing what happens next.
|
|
126
|
+
|
|
127
|
+
**Where to look.** Roles cached in sessions or tokens, permission caches without invalidation, websocket subscriptions opened before removal, scheduled jobs that captured the old principal.
|
|
128
|
+
|
|
129
|
+
**How to prove.** Revoke locally, then perform an operation that should now fail and succeeds.
|
|
130
|
+
|
|
131
|
+
### `retention-overrun`
|
|
132
|
+
|
|
133
|
+
**What.** Deletion finishes in the primary store, but jobs already queued, retries, exports, analytics pipelines or generated files bring the data back or keep it beyond what was promised.
|
|
134
|
+
|
|
135
|
+
**Where to look.** Jobs enqueued before deletion that write back, retry queues, derived files, analytics pipelines. Look for idempotent deletion and tombstone propagation.
|
|
136
|
+
|
|
137
|
+
**How to prove.** Delete while a local job is queued and show the data reappearing or surviving.
|
|
138
|
+
|
|
139
|
+
**Only a note.** Retention longer than you would like but within what the product states.
|
|
140
|
+
|
|
141
|
+
### `restore-reintroduces-state`
|
|
142
|
+
|
|
143
|
+
**What.** Backup restore, undo, undelete or replica recovery brings back rows, memberships, credentials or permissions that today's policy forbids.
|
|
144
|
+
|
|
145
|
+
**Where to look.** Restore code that writes snapshot rows as-is, undelete that restores old memberships, recovered replicas that resurrect revoked keys.
|
|
146
|
+
|
|
147
|
+
**How to prove.** Revoke, then restore a local snapshot from before the revocation, and show the revoked access back. Restored state must be re-authorized and later lifecycle changes reapplied.
|
|
148
|
+
|
|
149
|
+
## Moves that apply to every class above
|
|
150
|
+
|
|
151
|
+
- Pick one protected record and draw its write, query, cache, index, event, export, backup, delete and restore paths. Mark the principal and the tenant on every edge.
|
|
152
|
+
- Call the same local service methods as each of two dummy tenants. Repeat after an ACL change, a deletion, an account switch and a restore.
|
|
153
|
+
- Start with bypass clients, background jobs, migrations, global unique constraints and cache keys. Those paths usually lack the request-scoped identity that interactive endpoints carry.
|
|
154
|
+
|
|
155
|
+
## Checklist before reporting
|
|
156
|
+
|
|
157
|
+
1. The attacker or lower-trust principal, the protected data or state, the affected owner or tenant, the alternate copy or operation, and the unauthorized disclosure or change.
|
|
158
|
+
2. The policy meant to be the source of truth is cited next to the code path that skips or contradicts it, and no other layer enforces the same tenant or lifecycle condition.
|
|
159
|
+
3. Proof uses local dummy tenants and non-sensitive fixtures and stops as soon as one record or one operation shows the break.
|
|
160
|
+
4. When the answer depends on something outside the repo (retention or backup settings, a replica, analytics, the object store, a cache), needs-validation, with the owner-side check stated.
|
|
161
|
+
5. Confirmed needs the complete lineage and a concrete boundary impact. Otherwise needs-validation, naming the exact storage, ACL, invalidation, retention or restore fact.
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Desktop, mobile and local IPC
|
|
2
|
+
|
|
3
|
+
Load for desktop and mobile apps and the local machinery around them: privileged helpers, updaters, daemons, webview hosts, deep-link handlers, browser native-messaging hosts, and any client or server talking over local IPC. Native memory and loader safety are in [memory-and-binary.md](memory-and-binary.md); update channel authenticity is a supply-chain class.
|
|
4
|
+
|
|
5
|
+
## Ground rules for this domain
|
|
6
|
+
|
|
7
|
+
- Name the attacker's starting point before anything else: a remote web origin, a document from outside, a different app, a different OS account, or a sandboxed child process. "A local user" is not one category. Harm a user can only do to themselves, with their own account and authority, crosses no boundary.
|
|
8
|
+
- File paths, process names, bundle or package IDs and sender fields in the request do not authenticate a peer. Real peer authentication is OS peer credentials, code-signing identity, capability handles, or state of a protected channel.
|
|
9
|
+
- After parsing, the helper or native bridge has to authorize every operation against the resource it finally touches. A trusted UI or broker in front does not clean arguments an attacker can influence.
|
|
10
|
+
- Count the controls that really exist when they are pinned and visible: consent prompts, permissions, entitlements, signing, the OS sandbox, keychain ACLs, the export policy of components.
|
|
11
|
+
- Prove on an isolated machine or emulator with dummy profiles and content ([../isolated-execution.md](../isolated-execution.md)); never touch other people's apps, credentials or production services. Verdicts follow [../verification.md](../verification.md). If the result depends on packaging, the merged manifest, signing, installer ACLs, device policy or OS version, and you cannot see it, the finding is needs-validation.
|
|
12
|
+
|
|
13
|
+
## Deep links, callbacks and handoffs
|
|
14
|
+
|
|
15
|
+
### `deep-link-ambiguity`
|
|
16
|
+
|
|
17
|
+
**What.** Another app or a web page invokes a route that changes state, imports data, finishes a login or selects an account, without binding to the current session and a one-time callback value.
|
|
18
|
+
|
|
19
|
+
**Where to look.** Custom URL scheme and universal/app link handlers, Android `intent-filter` on exported activities, Electron `open-url` / `second-instance`, Windows protocol handlers. Check URI normalization, duplicate query parameters, how scheme/host/path are matched, and whether old links can be replayed.
|
|
20
|
+
|
|
21
|
+
**How to prove.** Fire the link from a second dummy app or page in an emulator and show the state change without user intent or session binding.
|
|
22
|
+
|
|
23
|
+
### `handoff-misbinding`
|
|
24
|
+
|
|
25
|
+
**What.** A login or approval callback (OAuth, SSO, magic link, invite, pairing a device, passwordless sign-in, payment) lands in the wrong place: another installed app, another profile or tenant, or a different pending transaction.
|
|
26
|
+
|
|
27
|
+
**Where to look.** Redirect URIs on shared custom schemes, missing PKCE or `state`, magic links not tied to the requesting device, pairing codes valid for any account.
|
|
28
|
+
|
|
29
|
+
**How to prove.** A second local app or profile receives and completes the callback. Bind the state to the initiating app, the live session, the account, the provider, the operation, and an expiry.
|
|
30
|
+
|
|
31
|
+
### `file-intent-authority`
|
|
32
|
+
|
|
33
|
+
**What.** Something handed to the app (a file opened by association, a share intent, a dropped item, clipboard content, a notification action, an open-file event) starts a privileged operation, and nobody checked the content type, whether the sender is trusted where that matters, whether the user meant it now, and what the final target is.
|
|
34
|
+
|
|
35
|
+
**Where to look.** File association handlers that import or execute, `ACTION_SEND` receivers, drop handlers, `application:openURL:` / `open-file` events.
|
|
36
|
+
|
|
37
|
+
**How to prove.** A dummy file or intent from a lower-trust source causes the privileged action locally.
|
|
38
|
+
|
|
39
|
+
## Webviews and native bridges
|
|
40
|
+
|
|
41
|
+
### `bridge-origin-confusion`
|
|
42
|
+
|
|
43
|
+
**What.** Remote or attacker-controlled frames reach a JavaScript-to-native bridge meant only for packaged content.
|
|
44
|
+
|
|
45
|
+
**Where to look.** `addJavascriptInterface`, `WKScriptMessageHandler`, Electron `contextBridge` / `preload` / `ipcRenderer`, Tauri commands, CEF bindings. Re-check the origin on every call, and again whenever the view navigates, follows a redirect, opens a subframe or popup, or falls back to an error page. A URL prefix check or a check only at first load is not enough.
|
|
46
|
+
|
|
47
|
+
**How to prove.** Cite both the navigation/origin control and the privileged native sink, then navigate a local test webview to a hostile page (or via redirect) and call the bridge.
|
|
48
|
+
|
|
49
|
+
### `overbroad-bridge`
|
|
50
|
+
|
|
51
|
+
**What.** A generic bridge lets page script choose any command, file, credential, IPC method or OS action it likes.
|
|
52
|
+
|
|
53
|
+
**Where to look.** Bridges like `invoke(method, args)` or `exec(cmd)`, file APIs taking raw paths, `shell.openExternal` with page-supplied URLs. Check method allowlists, argument normalization, user/tenant authority, gesture or confirmation requirements, and what return values leak.
|
|
54
|
+
|
|
55
|
+
**How to prove.** Page script in a local build calling a method or path outside the intended set.
|
|
56
|
+
|
|
57
|
+
### `webview-file-access`
|
|
58
|
+
|
|
59
|
+
**What.** A page loaded from the network can reach local app files, internal origins or privileged custom schemes, because settings or handlers blur origin lines: file-URL access, universal access from file URLs, mixed content, debugging interfaces, custom protocol handlers.
|
|
60
|
+
|
|
61
|
+
**Where to look.** `setAllowFileAccessFromFileURLs`, `setAllowUniversalAccessFromFileURLs`, `webSecurity: false`, `allowRunningInsecureContent`, remote debugging left on, custom `app://` handlers serving files outside the bundle.
|
|
62
|
+
|
|
63
|
+
**How to prove.** A hostile page in the local webview reads a dummy protected file or internal origin.
|
|
64
|
+
|
|
65
|
+
**Only a note.** A permissive setting with no reachable protected content behind it: hardening.
|
|
66
|
+
|
|
67
|
+
## Local IPC and exported components
|
|
68
|
+
|
|
69
|
+
### `ipc-peer-auth-gap`
|
|
70
|
+
|
|
71
|
+
**What.** A local channel accepts a peer of lower trust and never asks who it is: no OS credential check, no code-identity check, no sandbox token, no proof that the right party owns the channel. Channels include loopback TCP, Unix domain sockets, Windows named pipes, D-Bus, Binder, XPC, browser native messaging, local RPC and shared memory.
|
|
72
|
+
|
|
73
|
+
**Where to look.** `SO_PEERCRED` / `getpeereid` not used, XPC listeners without code-signing requirement, named pipes with default DACL, servers bound to `127.0.0.1` assuming only the app connects (any local process, and often browser pages, can reach them).
|
|
74
|
+
|
|
75
|
+
**How to prove.** A dummy lower-trust process calls a meaningful method or reads data behind the channel. No meaningful method behind it means no finding.
|
|
76
|
+
|
|
77
|
+
### `ipc-claimed-principal`
|
|
78
|
+
|
|
79
|
+
**What.** The channel is authenticated as one user or app, yet fields inside the request choose a different user, tenant, profile or capability.
|
|
80
|
+
|
|
81
|
+
**Where to look.** `uid`, `user`, `profile` arguments honoured after peer authentication.
|
|
82
|
+
|
|
83
|
+
**How to prove.** A peer authenticated as A acts as B by setting the field. Each method and resource must be bound to the peer credential.
|
|
84
|
+
|
|
85
|
+
### `exported-component-overreach`
|
|
86
|
+
|
|
87
|
+
**What.** A mobile component or local automation endpoint can be called from outside and performs an action meant for the app itself.
|
|
88
|
+
|
|
89
|
+
**Where to look.** The final merged `AndroidManifest.xml` (`exported`, intent filters, permission and `signature` protection level, `grantUriPermissions`, path permissions, `activity-alias`), content providers, broadcast receivers, AppleScript/automation dictionaries.
|
|
90
|
+
|
|
91
|
+
**How to prove.** `adb shell am start` / `content query` from a dummy app in an emulator reaching the action. If export status after packaging is unknown, needs-validation.
|
|
92
|
+
|
|
93
|
+
### `ipc-lifecycle-confusion`
|
|
94
|
+
|
|
95
|
+
**What.** One local peer can reply to, cancel or take over another peer's operation. Causes: guessable request IDs, handles that get reused, channels left stale, descriptors a child inherits, socket paths anyone can write, and what happens on restart.
|
|
96
|
+
|
|
97
|
+
**Where to look.** Socket files in `/tmp` created with loose permissions or before `chmod`, stale socket and lock files reused on restart, file descriptors inherited by child processes, sequential request IDs.
|
|
98
|
+
|
|
99
|
+
**How to prove.** A second local peer hijacks or cancels the first one's request, or pre-creates the socket path. Review creation permissions and cleanup of sockets, locks, ports and shared mappings.
|
|
100
|
+
|
|
101
|
+
## Privileged helpers and local files
|
|
102
|
+
|
|
103
|
+
### `confused-deputy-helper`
|
|
104
|
+
|
|
105
|
+
**What.** An unprivileged caller gets to choose what the privileged side does (which command runs, which file or service is touched, which user or OS setting changes) and no check happens per operation.
|
|
106
|
+
|
|
107
|
+
**Where to look.** sudoers rules with wildcards, polkit actions with `allow_any`, UAC-elevated helpers, `SMJobBless` / XPC helpers exposing generic operations. The helper must validate normalized arguments on its own.
|
|
108
|
+
|
|
109
|
+
**How to prove.** In a VM, call the helper as the unprivileged dummy user and show a privileged effect on a dummy target.
|
|
110
|
+
|
|
111
|
+
### `installer-path-trust`
|
|
112
|
+
|
|
113
|
+
**What.** After authorization, an elevated installer, updater or repair tool reads inputs a lower-trust actor can still change: its working directory, packages, scripts, manifests, symlinks, saved repair state.
|
|
114
|
+
|
|
115
|
+
**Where to look.** Packages staged in user-writable temp folders, post-install scripts read from writable locations, repair modes that re-run steps from user-writable state.
|
|
116
|
+
|
|
117
|
+
**How to prove.** Swap the staged dummy content after the authorization step in a VM and show the privileged process using it. Tie the authorization to content that cannot change afterwards and to destination paths nobody else controls.
|
|
118
|
+
|
|
119
|
+
### `local-file-toctou`
|
|
120
|
+
|
|
121
|
+
**What.** The app checks a file or path, then follows a replacement, symlink, mount, or case/normalization change during a privileged read or write.
|
|
122
|
+
|
|
123
|
+
**Where to look.** `access()` then `open()`, `stat` then write, path checks by string, writes into directories other users can write. Safe pattern: descriptor-relative operations (`openat`, `O_NOFOLLOW`) and final ownership verification.
|
|
124
|
+
|
|
125
|
+
**How to prove.** A local race or symlink swap redirecting the privileged write to a dummy target. Parsing after the file is open belongs to [memory-and-binary.md](memory-and-binary.md).
|
|
126
|
+
|
|
127
|
+
### `local-secret-exposure`
|
|
128
|
+
|
|
129
|
+
**What.** A secret stored locally can be read by an app, profile or OS user with less authority. Places it hides: keystore or keychain entries, token files, configs, logs, backups, the clipboard, notification previews.
|
|
130
|
+
|
|
131
|
+
**Where to look.** Keychain items with permissive accessibility or shared access groups, token files with `0644`, Android `allowBackup`, tokens written to logs, secrets copied to the clipboard, sensitive notification previews on the lock screen.
|
|
132
|
+
|
|
133
|
+
**How to prove.** Name the lower-trust reader and what the credential can do, then read it as that reader in a sandbox.
|
|
134
|
+
|
|
135
|
+
**Only a note.** A plaintext secret that only the intended OS account can read is not, alone, a finding.
|
|
136
|
+
|
|
137
|
+
## App state and device lifecycle
|
|
138
|
+
|
|
139
|
+
### `account-switch-residue`
|
|
140
|
+
|
|
141
|
+
**What.** After logout or an account switch, the next account sees what belonged to the previous one: caches, local databases, webview storage, widgets, notifications, background tasks, biometric approvals.
|
|
142
|
+
|
|
143
|
+
**Where to look.** Logout code that clears tokens but not caches, webview cookie stores, scheduled jobs, widget data, multi-profile setups, backup and restore to a new device.
|
|
144
|
+
|
|
145
|
+
**How to prove.** Log in as dummy A, switch to dummy B on the emulator, and observe A's data or approvals.
|
|
146
|
+
|
|
147
|
+
### `pending-action-mismatch`
|
|
148
|
+
|
|
149
|
+
**What.** What the user approved and what runs differ. A biometric prompt, a notification button, a widget, a shortcut, the share sheet or a deferred job authorizes an action other than the one displayed, fires after it expired, or picks up pending state from another profile.
|
|
150
|
+
|
|
151
|
+
**Where to look.** Notification actions carrying IDs resolved later, biometric prompts not bound to the transaction, deferred operations queued before an account switch.
|
|
152
|
+
|
|
153
|
+
**How to prove.** A local flow where the confirmed action differs from the executed one. Tie the confirmation to the normalized action, the resource, the account and what is in the foreground at that moment.
|
|
154
|
+
|
|
155
|
+
## Moves that apply to every class above
|
|
156
|
+
|
|
157
|
+
- Inventory everything that can be called: processes, helpers, app components, local endpoints, webview origins, URI schemes, file associations. For each: OS identity, runtime privilege, who can call it, what it can do.
|
|
158
|
+
- Read what the build actually ships, not only source: the merged manifest, the entitlements file, installer rules, how native messaging and protocol handlers are registered, how ACLs are created. Declarations in source can be overridden later in the build.
|
|
159
|
+
- Test only on an emulator or an isolated machine, with made-up profiles and harmless fixtures.
|
|
160
|
+
|
|
161
|
+
## Checklist before reporting
|
|
162
|
+
|
|
163
|
+
1. The attacker's starting capability, the OS or app principal crossed, the entry channel, the accepted argument or state, and the unauthorized operation or disclosure.
|
|
164
|
+
2. Sandbox, peer credentials, signing, entitlements, permissions, user consent and installer controls that apply are all checked. Unknown packaging or runtime facts mean needs-validation.
|
|
165
|
+
3. Webview bridges: both the origin control and the native sink cited. IPC: peer authentication and per-resource authorization. Helpers: the final normalized destination verified.
|
|
166
|
+
4. Local tests stay bounded with dummy content and accounts, and stop at the boundary result: no persistence, no wider system changes.
|
|
167
|
+
5. Confirmed needs a complete chain of source and local evidence. Otherwise needs-validation, naming the one fact still open: OS behaviour, the manifest, signing, an ACL, or device lifecycle.
|