03 - App Vulnerability Scanning
03 - App Vulnerability Scanning
by TWN
Vulnerability Scanning
No part of this publication may be reproduced, copied, transmitted in any
form or by any means, electronic, mechanical, photocopying, recording or
otherwise, without the prior written permission of nnSoftware GmbH
Our mission is enable individual engineers as well as companies to take advantage of the
recent developments in Cloud and DevOps fields, to use technologies and concepts in
order to create efficient, automated, streamlined DevSecOps processes in organisations.
Manual security checks, would block right If we release it, we would end up with an
before release app full of security vulnerabilities
Slow feedback cycle, blocking release for We are blind to what we are deploying
weeks or months
Copyright 2023 nnSoftware GmbH. All rights reserved.
Solution:
Integrate App Vulnerability Scanning Tools
So we want to add the security tests from the beginning, integrating it into the
developer workflow instead of a separate isolated step
It’s a leaky asset, you never know hwere it is going to end up.
Could be cloned to a compromised server
Tools that scan the source code and detect hard-coded secrets
There are many different such tools available
Choose based on what you are trying to achieve and find a
widely, validated tool that does exactly that
1 - Install it locally
1 - Install it locally
Git repository
So while GitLeaks checks the code for leaked secrets once a commit is pushed, it’s
actually too late
We could change the password or revert Git history, but that is not an ideal solution
Git repository
Git Hooks
“Pre-Commit” Hook
We learnt we want to shift security as much left as possible to detect security issues as
early as possible
Besides planning phase and threat modeling before development, pre-commit hook is
one of the furthest shifts left possible
Server-side Hooks
Developers
DevSecOps Engineer
Help team to identify any issues and Developers will see failed CI/CD Pipeline and
bring issues to the attention of the vulnerabilities found by the tool
developers Developers and other project team members will
fix it
CI/CD platform interacts with different external systems, platforms and services, as it
is the orchestrator of the whole release pipeline
So you have secrets throughout the pipeline
We learnt about the different types of SAST Tools help in finding those
security vulnerabilities the code can have vulnerabilities automatically