1. Do we have any option in Bitcoin Core to search files used by it? Or any option to delete all such files?

  2. Are all important files deleted when uninstalling Bitcoin Core?

  3. Should we remove such files from different machines and what are the easiest ways possible to do this for images, VMs and hosts?

1 Answer 1

  1. No

  2. No. What happens to wallet.dat if I uninstall and re-install on Windows Bitcoin desktop client?

  3. Depends on the user and it's good to delete such files from system that will not be used anymore if you have backup.

Scanning bitcoin core related important files with an open source tool: https://github.com/deepfence/SecretScanner

It will search for lot of files including 3 related to Bitcoin Core:

  - part:  'filename'
    match: 'wallet.dat'
    name: 'Bitcoin Core wallet'
  - part:  'filename'
    match: 'onion_v3_private_key'
    name: 'Private key for Bitcoin Core onion service'
  - part:  'filename'
    match: 'bitcoin.conf'
    name: 'Bitcoin Core config'


Maybe we can even add debug.log in this.

A blog post about "Detecting secrets to reduce attack surface": https://medium.com/deepfence-cloud-native-security/detecting-secrets-to-reduce-attack-surface-3405ee6329b5


Secrets are as important as vulnerabilities from cybersecurity point of view, as attackers can very easily get backdoor access into customer infrastructure and spread laterally to launch multi-stage attacks due to leakage of secrets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.