
SEDATED® Project (Sensitive Enterprise Data Analyzer To Eliminate Disclosure)

The SEDATED® Project (Sensitive Enterprise Data Analyzer To Eliminate Disclosure) focuses on preventing sensitive data such as user credentials and tokens from being pushed to Git.
With the myriad of code changes required in today's CICD environment developers are constantly pushing code that could unintentionally contain sensitive information. This potential sensitive data exposure represents a huge risk to organizations (2017 OWASP Top Ten #3 - Sensitive Data Exposure). SEDATED® addresses this issue by automatically reviewing all incoming code changes and providing instant feedback to the developer. If it identifies sensitive data it will prevent the commit(s) from being pushed to the Git server.
**NOTE: ONLY lines being added or modified (beginning with + in the patch file) in commit pushes are scanned by SEDATED®. Lines that are being removed (beginning with - in the patch file) in commit pushes are NOT scanned by SEDATED®.
git clone https://github.com/OWASP/SEDATED.git
cd SEDATED/
.example filescp /config/whitelists/commit_whitelist.txt.example /config/whitelists/commit_whitelist.txt
cp /config/whitelists/repo_whitelist.txt.example /config/whitelists/repo_whitelist.txt
cp /config/enforced_repos_list.txt.example /config/enforced_repos_list.txt
/config/custom_configs.sh Variables and Functions (as desired)Push organization specific implementation of SEDATED® to organization's desired Git repository (GitHub, GitLab, Git, etc...).
pre-receive.sh fileInstructions for accomplishing this on a GitHub Enterprise instance can be found in GitHub_Enterprise_Setup.md.
always_reject.sh will need to be replaced with the SEDATED® pre-receive.sh script.pre-receive.sh script.