1Password Service Account Token
Detects 1Password Service Account tokens, which begin with ops_eyJ (the ops_ prefix followed by a Base64-encoded JSON envelope) and 100 to 500 Base64/URL-safe characters. Service Account tokens grant non-interactive CLI and SDK access to designated 1Password vaults without master-password or biometric prompts.
- Type
- regex
- Engine
- boost_regex
- Confidence
- high
- Confidence justification
- High confidence: 1Password Service Account tokens combine the vendor prefix ops_ with eyJ (Base64 for {"...) and a long structured cryptographic payload, pinned by 1Password docs, GitHub secret scanning, and TruffleHog.
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth)
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, SOC 2
- Data categories
- credentials, security
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, CrowdStrike DLP: Unsupported, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?-i)(?<![A-Za-z0-9+/_-])(ops_eyJ[A-Za-z0-9+/=_-]{100,500})(?![A-Za-z0-9+/=_-])
Corroborative evidence keywords
1password, OP_SERVICE_ACCOUNT_TOKEN, op read, op run, api key, api_key, apikey, access key, access token, auth token, authorization, bearer, conn str, connection string, connectionstring, cookie, credential, database, host, [object Object] (+37 more)
Proximity: 300 characters
Should not match
OP_SERVICE_ACCOUNT_TOKEN=ops_eyJshortpayload12345— Payload shorter than 100 characters after ops_eyJOP_SERVICE_ACCOUNT_TOKEN=ops_notbase64json_short— Missing eyJ JSON envelope prefixExport OP_SERVICE_ACCOUNT_TOKEN before calling op run in GitHub Actions.— Documentation prose without a token valuetemplate example placeholder record identifier— Template/sample context should be excluded even when anchor words are present
Known false positives
- Revoked 1Password service account tokens in retired CI workflow logs. Mitigation: Verify active service accounts in 1Password Integrations -> Infrastructure Secrets Management.
- Truncated or mock ops_eyJ strings in CLI tutorials. Mitigation: Excluded on every tier by template-exclusion.
References
- 1Password Developer Service Accounts documentation (OP_SERVICE_ACCOUNT_TOKEN and ops_ tokens)
- Supported secret scanning patterns - GitHub Docs (1Password Service Account Token)