This will start the Privado scan and perform the static code analysis of the project and its dependencies. You will get the following result:
On the console, you can see data elements and corresponding third parties, storages, leakages, collection points, and processing instances detected during the scan. A detailed report is also generated at BankingSystem-Backend/.privado/privado.json.
Note that the actual result can be a bit different from the one shown above. It will depend on the version of Privado OSS installed and the repository that is being scanned
The scan usually runs for less than a minute, depending on the size of the repositories and dependencies.
After the scan is completed, the results will be stored in the /.privado/privado.json file inside the repository folder (BankingSystem-Backend in our case)
You can also look at the sample privado.json generated during a scan on 27th Sep 2022.
> Scanning directory: /Users/anujagrawal/Desktop/Projects/Privado/repos/BankingSystem-Backend
> Pulling the latest image: public.ecr.aws/privado/privado:latest
latest: Pulling from privado/privado
Digest: sha256:47f9bd5a32ff4dbea131d39ed355ada0e9190416ffb61b70a2ecd686fa6278ba
Status: Image is up to date for public.ecr.aws/privado/privado:latest
> Starting container with the latest image
> Container ID: 5108f009875a373ca940022dda554ab9bde86218f298de2dfcfd9fb9d9bae7a8
> Waiting for process to complete:
Privado CLI Version: v2.1.0
Privado Core Version: 1.1.0
Privado Main Version: 1.1.0
Configuration parsed...
Guessing source code language...
Detected language 'Java'
Processing source code using JAVASRC engine
Downloading dependencies and Parsing source code...
Tagging source code with rules...
Finding source to sink flow of data...
Deduplicating data flows...
Brewing result...
-----------------------------------------------------------
SUMMARY
-----------------------------------------------------------
Privado discovers data elements that are being collected, processed, or shared in the code.
DATA ELEMENTS | 11 |
THIRD PARTY | 1 |
STORAGES | 3 |
ISSUES | 0 |
---------------------------------------------------------
11 DATA ELEMENTS
Here is a list of data elements discovered in the code along with details on data flows to third parties, databases and leakages to logs.
1. PASSPORT
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 5
2. AGE
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 5
3. PHONE NUMBER
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}, /transfer/betweenAccounts
Processing -> 6
4. DATE OF BIRTH
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 5
5. ACCOUNT PASSWORD
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 10
6. ACCOUNT NAME
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 3
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 13
7. LAST NAME
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 4
8. EMAIL ADDRESS
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 5
9. ACCOUNT ID
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /transfer/balanceAmountOnly/{accountId}, /transfer/balance/{accountId}, /accounts/update/{id}, /transfer/betweenAccounts, /transfer/transactionHistory/{accountId}
Processing -> 14
10. FIRST NAME
Sharing -> fast2sms.com
Storage -> AccountDao JBDC Connector, JPA Repository(Read), JPA Repository(Write)
Leakage -> 1
Collections -> /accounts/add, /accounts/update/{id}
Processing -> 4
11. LANGUAGE PREFERENCES
Sharing -> fast2sms.com
Leakage -> 1
Processing -> 1
Successfully exported output to '/Users/anujagrawal/Desktop/Projects/Privado/repos/BankingSystem-Backend/.privado' folder
zsh: command not found: git
Cloning into 'BankingSystem-Backend'...
fatal: unable to access 'https://github.com/saurabh-sudo/BankingSystem-Backend/': Could not resolve host: github.com
> Scanning directory: /Users/anujagrawal/Desktop/Projects/Privado/repos/BankingSystem-Backend
> Pulling the latest image: public.ecr.aws/privado/cli:latest
Received error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
> Scanning directory: /Users/anujagrawal/Desktop/Projects/Privado/repos/python-example
> Pulling the latest image: public.ecr.aws/privado/cli:niagara-dev
niagara-dev: Pulling from privado/cli
Digest: sha256:5b41906451148f8f9c9676a545f157016d71dfb241eb5d17d9690c7f5d1d8531
Status: Image is up to date for public.ecr.aws/privado/cli:niagara-dev
> Starting container with the latest image
> Container ID: e8cf930370a0232300109c1b5271797265d0c9946a9950138b4071d8e343326c
> Waiting for process to complete:
Privado CLI Version: dev
Privado Core Version: 0.0.169
Privado Main Version: 0.0.109
Configuration parsed...
Guessing source code language...
As of now we only support privacy code scanning for 'Java' code base.
We detected this code base of 'PYTHONSRC'.