# Data collection limited to minimum necessary for stated functionality

- **Pattern:** `ab-001302` (`extension-data-privacy.data-collection.minimal-collection`)
- **Severity:** high
- **Lifecycle:** active
- **Last modified:** 2026-04-18
- **Canonical URL:** https://auditbuffet.com/patterns/ab-001302
- **License:** CC-BY-4.0 — attribute to AuditBuffet Pattern Catalog (https://auditbuffet.com/patterns/ab-001302)

## Why it matters

GDPR Art. 5(1)(c) codifies data minimization as a legal obligation, not a guideline — collecting more data than your declared function requires is itself a violation. Chrome extensions that request `history`, `cookies`, or `webRequest` permissions for features that do not use them expand the blast radius of any future compromise and invite rejection from store reviewers performing permission audits. CCPA §1798.100 gives users the right to know what data is collected; collecting data not mentioned in your listing undermines that right and exposes you to regulatory action. Overpermissioned extensions are also a primary signal in automated Chrome Web Store policy enforcement.

## Severity rationale

High because unnecessary permissions and extraneous data collection expand the attack surface of every future vulnerability — a bug in an extension with `history` access is far more damaging than the same bug without it.

## Remediation

Audit your `manifest.json` permissions against actual API call sites. Remove any permission without a matching `chrome.*` API call in your codebase:

```json
// BEFORE — overpermissioned
"permissions": ["history", "cookies", "storage", "tabs", "webRequest"]

// AFTER — scoped to actual usage
"permissions": ["storage", "tabs"]
```

Also remove background telemetry not disclosed in your store listing:

```js
// Remove if not disclosed in privacy policy
chrome.tabs.onActivated.addListener((info) => {
  analytics.track('tab_switched'); // DELETE
});
```

If you find permissions you intend to use later, remove them now and re-request when the feature ships.

## Detection

**The detection method for this pattern is part of AuditBuffet Pro.**

The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the [Extension Data Privacy Audit](https://auditbuffet.com/audits/extension-data-privacy). The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.

## External references

- gdpr Art. 5(1)(c)
- ccpa §1798.100
- external chrome-web-store-user-data-policy — https://developer.chrome.com/docs/webstore/user_data/
- nist AC-3
- cwe CWE-272
- owasp A04

Taxons: privacy-consent, access-control

HTML version: https://auditbuffet.com/patterns/ab-001302
