A leaked API key rarely stays a one-secret problem. After gaining access to a developer workstation, repository, CI runner or AI tool, an attacker may search environment variables, shell history, build logs and deployment settings for credentials that unlock the next system. Crypto projects are especially sensitive because one environment can contain market-data tokens, exchange trading keys, RPC credentials, package-publishing access and cloud identities. This guide builds a containment and rotation workflow around 1Password without pretending that a password manager can revoke an external key or replace disciplined incident response.

Last reviewed: November 12, 2026. 1Password Developer Watchtower, Environments, CLI, SDKs, Service Accounts, Events Reporting and audit features can change, and availability depends on plan and platform. External providers control their own key permissions, revocation and logs. Follow the current documentation for every affected system and obtain qualified incident-response assistance where compromise is material. This independent educational guide is not affiliated with 1Password and is not financial, legal or investment advice.

Quick answer: preserve evidence, identify the exposed credential and contain its issuing account before cleaning files. Revoke a confirmed high-risk secret at the provider, end related sessions, issue a narrowly scoped replacement and update every known consumer. Use 1Password to reduce plaintext copies, assign ownership and deliver replacements through Environments, CLI, SDKs or Service Accounts where appropriate. Then prove the old value fails, inspect provider and 1Password events, scan repository history and document the dependency you initially missed. A wallet seed or private key is different: it cannot be revoked, so exposed assets need a new trusted wallet and a carefully verified migration.

1. What is credential harvesting?

Credential harvesting is the deliberate collection of secrets that authorize access: passwords, API keys, access tokens, session cookies, SSH keys, cloud credentials and service-account tokens. It can be the attacker’s initial objective or the next stage after another vulnerability provides a foothold.

One stolen token can expose the place where other tokens live. A compromised CI service may reveal environment variables; a package token may distribute malicious code that searches developer machines; a cloud key may provide access to deployment configuration. The resulting chain matters more than the first file.

2. Why crypto projects need a specialized response

Crypto development combines ordinary software infrastructure with financial and blockchain systems. A repository may reference an exchange API, RPC endpoint, explorer service, treasury dashboard and deployment wallet. These credentials have radically different powers.

A read-only market-data key may create cost and availability risk. A trading key may place orders. A cloud credential may alter the application users trust. A seed phrase directly controls assets and cannot be revoked. Treating all of them as interchangeable “API keys” creates a dangerous response plan.

3. Classify the secret before acting

Secret Issuer Revocable? Primary emergency action
Exchange API key Exchange Yes Disable or revoke at the exchange; review permissions and activity
RPC or explorer token Infrastructure provider Yes Revoke, inspect usage and issue a limited replacement
Git or package token Source/package platform Yes Revoke and inspect commits, releases and published artifacts
Cloud access key Cloud provider Yes Disable, review audit logs and contain affected resources
1Password Service Account token 1Password Yes Revoke token and inspect vault scope and usage
Session cookie Application Usually Terminate sessions at the source service
Wallet seed/private key No revocation authority No Create a new trusted wallet and migrate assets safely

4. Severity depends on capability, not the label

Two exchange API keys can have very different blast radii. One may only read balances from a test account; another may trade futures in production or withdraw assets. Determine the account, environment, permissions, allowlists, balance and downstream automation before setting priority.

Do not test a suspected withdrawal key by initiating a transfer. Inspect the provider’s authenticated permission screen and documentation from a known-clean device.

5. First response: preserve, scope, contain

  1. Record the alert, time, source and affected system.
  2. Stop using a device that may still be controlled.
  3. Preserve relevant logs, commit identifiers and job output.
  4. Identify the credential without copying its full value into notes.
  5. Determine permissions and active consumers.
  6. Contain high-risk access at the issuing provider.
  7. End sessions and disable related automation when necessary.
  8. Issue and deploy a narrowly scoped replacement from a clean environment.
  9. Verify the old credential no longer works.

Cleaning a repository before containment can destroy evidence while leaving the attacker with a valid key.

6. Work from a known-clean device

If malware or remote access is plausible, changing credentials on the same computer can reveal the replacements. Use a patched trusted device and independently verified provider URLs. Secure the root email, SSO and 1Password account before relying on them to recover downstream systems.

Do not install a “crypto recovery scanner” sent by an unsolicited responder. It may be the next harvesting tool.

7. Revoke, rotate and delete are different

Action What it does What it does not prove
Delete from file Removes one plaintext copy The external credential is invalid
Rewrite Git history Removes reachable copies from selected history Forks, caches or clones no longer contain it
Issue replacement Creates a new credential The old credential stopped working
Revoke Invalidates the selected credential at its issuer Existing sessions or derived tokens are terminated
Rotate Moves consumers to a new value and retires the old one Every undocumented consumer was updated

8. Deleting a leaked key from Git is not containment

Git preserves history, and external systems may retain clones, forks, CI caches, pull-request patches and build artifacts. Even a complete history rewrite cannot recall a value already copied by an attacker.

Revoke first when the credential can be revoked. Clean history afterward to prevent future accidental reuse and reduce scanning alerts.

9. Build a credential inventory without secret values

An incident inventory should record:

  • credential name and nonsecret identifier;
  • issuing provider and account;
  • environment and owner;
  • permissions and restrictions;
  • storage location;
  • applications, jobs and agents that consume it;
  • creation, expiry and last-rotation dates;
  • revocation and verification status.

Do not paste the key into a spreadsheet to make the inventory “complete.” Record the 1Password item or Environment reference instead.

10. Map the blast radius

Question Why it matters Evidence source
What can the key do? Defines maximum impact Provider permission screen
Where was it exposed? Identifies who or what could read it Repository, log or tool history
When did exposure begin? Sets the review window Commit and deployment timestamps
Where is it used? Prevents failed replacement Inventory, configs and runtime telemetry
Was it used unexpectedly? Separates exposure from exploitation Issuer audit and billing logs
What else did the environment hold? Finds lateral-movement paths CI variables, vault scope and host forensics

11. Places developers commonly overlook

  • Git history, forks and pull-request diffs;
  • .env and example environment files;
  • shell history and profile scripts;
  • CI variables and debug logs;
  • container layers and image registries;
  • Terraform state and deployment manifests;
  • build artifacts and source maps;
  • support tickets and screenshots;
  • clipboard managers and terminal recordings;
  • AI prompts, MCP configuration and agent logs;
  • crash dumps and monitoring payloads.

12. Developer Watchtower has a precise role

1Password describes Developer Watchtower as a way to discover local environment files containing plaintext secrets and help move them into Environments. This reduces persistent copies on developer machines.

It is not a universal repository-history scanner or forensic tool. Use dedicated secret scanning for the complete Git history, hosted repositories, CI and artifacts. A discovered credential that may have been exposed still needs external revocation or rotation.

13. Move plaintext into 1Password Environments

Environments let a project refer to stored values instead of committing them to source. Separate development, staging and production so a local workflow cannot retrieve production credentials by default.

Migration does not end at import. Remove the old file from unsafe locations, update application references, redeploy affected processes and confirm that the plaintext value is absent from logs and artifacts.

14. Secret references reduce copies, not consequences

A reference such as a 1Password secret URI can be safe to store where the corresponding value would be dangerous, but a process resolving that reference receives usable secret material. If the process or host is compromised, the attacker may still capture it.

Combine references with narrow provider permissions, isolated environments and runtime controls.

15. 1Password CLI runtime delivery

The 1Password CLI can load a secret into an environment or configuration at runtime. This avoids hardcoding it in source, but the child process can read the real value. Depending on the application, it may also appear in diagnostics, inherited environment variables or a process dump.

Never enable shell tracing around a secret-injection command. Review whether the application prints its complete environment during startup errors.

16. SDKs and application responsibility

1Password SDKs can provide programmatic access without maintaining a local plaintext file. The receiving code still has a duty to avoid logging, returning or caching the secret improperly.

Use short-lived access where the issuing provider supports it. A long-lived external API key does not become short-lived merely because an SDK retrieved it securely.

17. Service Accounts separate automation from people

A bot or deployment should not depend on a developer’s personal session. A 1Password Service Account provides a distinct automation identity with access to selected resources.

Scope the account to the smallest required vaults or Environments. Create separate tokens for separate workloads where practical, assign an owner and document revocation. The external API keys it retrieves need their own limits at their providers.

18. Service Account token exposure

If a Service Account token leaks, identify every vault or Environment it can reach. Revoke the token in 1Password, inspect relevant events, issue a replacement only after fixing the exposure path and rotate downstream secrets if the token could retrieve them.

Replacing only the Service Account token may be insufficient because the attacker may already have copied the external credentials.

19. Exchange API key response

Open the exchange through a trusted bookmark or official application. Record the key identifier, permissions, IP restrictions, subaccount, creation time and recent use. Revoke a confirmed compromised key and review:

  • orders and cancellations;
  • withdrawals and saved addresses;
  • API permission changes;
  • new devices and sessions;
  • subaccount transfers;
  • futures positions and leverage;
  • security notifications.

Create a replacement with read-only or trading-only access when withdrawal authority is unnecessary. Use IP allowlisting where the deployment has predictable addresses.

20. Read-only does not mean harmless

A read-only key can expose balances, strategy, address history and internal account structure. It can also consume rate limits or paid quota. Treat confidentiality and availability as real impact even when funds cannot move directly.

21. RPC and explorer keys

Review provider usage by time, method, network and source where available. A stolen token may generate a large bill, exhaust capacity or reveal private endpoints. Rotate it, apply quotas and restrict origins or IPs if supported.

Do not confuse an RPC token with a wallet private key. The token authorizes use of infrastructure; the private key authorizes blockchain signatures.

22. Cloud credentials can change the trusted application

A cloud key may not touch a wallet directly, but it can alter DNS, deployment images, secrets, APIs or the web interface users rely on. Review cloud audit logs, IAM changes, new identities, storage access and running workloads.

Contain cloud compromise with the provider’s incident guidance. Rotating one key without removing persistence leaves the environment vulnerable.

23. GitHub and source-control tokens

Inspect repository access, workflow changes, branch protection, releases, deploy keys, GitHub Apps and personal access tokens. Revoke the exposed credential and verify that no unauthorized key or workflow was added.

Require reviews for sensitive workflow changes and prevent untrusted fork jobs from receiving production secrets.

24. Package registry compromise

A package-publishing token can distribute malicious code to users and build systems. Revoke it, freeze publication if possible, inspect recent releases and signing records and coordinate with the registry’s security process.

Consumers may need a clean version and an incident notice. Quietly rotating the token does not remove a malicious package already published.

25. CI/CD is a credential concentration point

CI runners often access source, packages, cloud deployment and signing systems. Review:

  • who can edit workflows;
  • which branches and environments release;
  • whether pull requests receive secrets;
  • runner persistence and isolation;
  • artifact and log retention;
  • manual approvals for production;
  • OIDC or short-lived identity options;
  • unused variables and credentials.

26. AI prompts and chat history

If a secret was pasted into an AI chat, assume the value entered the tool’s data boundary. Deleting the message is not equivalent to revoking the credential. Follow the tool’s enterprise retention and incident procedures, but contain the secret at its issuer first.

Replace copied secrets in prompts with approved integrations or references. The connected tool’s permissions still need least privilege.

27. MCP servers receive real authority

A local MCP server launched with an API key can usually read that key, even if an AI model never sees the plaintext. A compromised or overpowered server may act using the credential.

Inventory the server, package source, version, tools, filesystem access, network destinations and approval settings. Remove unused tools and rotate any secret embedded in MCP configuration.

28. Agent login access extends beyond password visibility

Keeping a password outside an agent’s visible context reduces one exposure path. It does not limit what the authenticated session can do. Review account permissions, consequential-action approvals and how to terminate the session.

Never give an AI agent access to a wallet seed or unrestricted withdrawal account.

29. Choose the rotation order

Start with identities that can reset or issue other access:

  1. root email, SSO and identity provider;
  2. 1Password and administrative access;
  3. cloud, CI/CD and source control;
  4. package and container registries;
  5. exchange and treasury API keys;
  6. RPC, explorer and data providers;
  7. monitoring, webhooks and lower-impact development keys.

The incident’s evidence can change this order. A withdrawal-capable key is always urgent.

30. Planned rotation versus emergency revocation

Stage Planned rotation Confirmed compromise
New credential Create before cutover Create only from clean controlled environment
Deployment Update consumers gradually Prioritize containment over convenience
Old credential Revoke after verification Revoke immediately when impact justifies it
Downtime Minimize with overlap Accept if required to stop attacker access
Evidence Routine change record Preserve logs and incident timeline

31. A safe replacement sequence

  1. Create the replacement with narrower rights.
  2. Store it in the correct 1Password vault or Environment.
  3. Update one documented consumer.
  4. Restart or redeploy the process so it reads the new value.
  5. Verify the expected function and logs.
  6. Update remaining consumers.
  7. Revoke the old credential at its issuer.
  8. Test that the old value fails without printing it.
  9. Monitor for continued attempts using the old identifier.

32. Processes can retain old values

Updating a 1Password item does not necessarily change a secret already loaded into a running process. Containers, serverless instances, background workers and local shells may retain the previous environment until restart or redeployment.

Document which consumers read on startup and which retrieve dynamically. Confirm each was refreshed.

33. Prove the old credential is dead

A rotation is incomplete until the issuer rejects the previous credential. Use a safe provider-supported verification, inspect its status or make a nonconsequential authenticated request designed for this test. Do not place a trade or transfer funds merely to test failure.

Store the result and time in the incident record without storing the secret.

34. Review 1Password audit information

Eligible 1Password Business accounts can use the audit log to review events involving users, devices, vaults, groups, Service Accounts and tokens. Filter by the incident window, actor and event type. Export only to an approved protected location.

An audit log can show access-related events but cannot prove what a person remembered, photographed or copied outside monitored workflows.

35. Events Reporting and SIEM

1Password Events Reporting can send selected sign-in, item-usage and audit events to a SIEM. Use a separate integration token for each service and narrow the event types. Protect and rotate these bearer tokens like other credentials.

Correlate 1Password events with source control, CI, cloud, exchange and provider logs. Time synchronization and consistent identity names make the timeline more reliable.

36. Evidence to preserve

  • alert and detection timestamp;
  • commit, pull request and workflow identifiers;
  • key identifier without the secret value;
  • provider audit events and IP addresses;
  • package version or container digest;
  • deployment and job identifiers;
  • exchange order or withdrawal references;
  • device, session and account changes;
  • containment, rotation and verification times.

37. Do not send sensitive recovery material to support

Legitimate troubleshooting does not require the 1Password account password, Secret Key, Emergency Kit, full API secret, wallet seed, private key, MFA seed or recovery codes. Provide timestamps, nonsecret identifiers, application versions and sanitized errors.

A person offering to “verify” a seed phrase is attempting to obtain control of the wallet.

38. Wallet private-key exposure needs migration

A blockchain private key cannot be revoked. If exposure is credible, create a new wallet using trusted software or hardware in a clean environment, verify the new receiving address independently and move assets according to the network’s risk and fee conditions.

Remember token approvals, staking positions, NFTs, DeFi positions and smart-account permissions. Complex or high-value migrations may require specialist help. Never enter both old and new recovery secrets into an unknown “migration tool.”

39. Post-incident root-cause review

Ask why the credential existed where it leaked:

  • Was it hardcoded for convenience?
  • Did a workflow have excessive permissions?
  • Was production access used in development?
  • Could an untrusted pull request read secrets?
  • Was an AI or MCP tool connected without governance?
  • Did a former team member retain access?
  • Were logs and alerts available soon enough?
  • Was the owner and rotation procedure known?

40. Improve the system after containment

  • Remove persistent plaintext copies.
  • Separate development and production credentials.
  • Use one automation identity per workload where practical.
  • Reduce external key permissions and add quotas.
  • Enable IP or origin restrictions where stable.
  • Automate secret scanning without treating it as complete prevention.
  • Stream relevant events to protected monitoring.
  • Practice rotation with a nonproduction credential.

41. Final response checklist

  • The secret and issuer are identified without copying the value.
  • Permissions, account, environment and consumers are mapped.
  • Evidence is preserved.
  • High-risk access is revoked or contained.
  • Related sessions and persistence are reviewed.
  • The replacement has narrower permissions.
  • Every known consumer is restarted or redeployed.
  • The old credential is confirmed invalid.
  • Repository history, CI, artifacts and AI tools were inspected.
  • Provider and 1Password events were reviewed.
  • The root cause and missed dependency are documented.
  • Wallet secrets, if exposed, are migrated rather than “rotated.”

Frequently asked questions

What is credential harvesting?

It is the collection of passwords, API keys, tokens and other access material, often after an attacker gains an initial foothold and searches for routes into additional systems.

Is deleting an API key from GitHub enough?

No. The key may remain in history, forks, caches and an attacker’s copy. Revoke it at the issuing provider, then clean stored copies.

What is the difference between revoke and rotate?

Revoke invalidates a credential. Rotate replaces it across consumers and retires the old value. A complete rotation includes successful replacement and verified revocation.

Can 1Password revoke an exchange API key?

Normally no. The exchange issued the key and controls its revocation. 1Password can store and deliver the replacement but does not replace the exchange permission screen.

What should I do if a key was pasted into an AI chat?

Contain it at the issuer, review the AI service’s retention and incident controls, remove unsafe copies and replace hardcoded prompt configuration with an approved integration.

Are .env files safe?

They are better than committed source only when kept out of repositories and protected correctly, but they remain plaintext files. References and runtime delivery can reduce persistent copies.

Can a process launched with 1Password CLI see the secret?

Yes. The receiving process needs usable secret material. Secure the process, environment, diagnostics and child-process inheritance.

Should a bot use a developer’s personal account?

No. Use an appropriate dedicated automation identity or Service Account with narrow scope, ownership, monitoring and a revocation plan.

How do I know the old key no longer works?

Confirm its revoked status with the issuer and perform a safe nonconsequential verification if supported. Do not test with a trade or withdrawal.

Do I need to rewrite Git history?

Often it is useful after revocation to remove persistent copies, but it is not a substitute for revoking the secret. Coordinate history rewriting carefully with contributors and forks.

Can I rotate a wallet seed phrase?

No. Create a new trusted wallet and move assets and relevant positions. No provider can invalidate the old private key.

How can planned rotation avoid downtime?

Create a new limited key, update and verify consumers, then revoke the old one. During confirmed compromise, immediate containment may be more important than uninterrupted service.

What logs should a crypto team preserve?

Preserve provider, exchange, cloud, source-control, CI, package, 1Password and application events tied to the exposure window, along with nonsecret identifiers and response actions.

Official 1Password references

Use these first-party sources to verify current features, availability and security boundaries:

Conclusion

Credential harvesting turns one exposed secret into a search for the next. A useful response therefore follows the chain: classify the credential, contain it at the issuer, map every consumer, replace it through controlled delivery and prove the old authority has ended. 1Password can reduce plaintext copies, separate automation identities and improve event visibility, but the external provider still controls what its key can do.

Crypto teams need one additional distinction: revocable credentials and blockchain keys are not the same. Rotate API keys and tokens; migrate assets away from exposed wallet keys. Practice both procedures before an emergency, because the middle of a real incident is the worst time to discover an undocumented dependency.

Visit 1Password ↗Official website