DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Utilize These Detection-as-Code Best Practices
  • Overcoming MFA Test Automation Challenges
  • Shifting Left: A Culture Change Plan for Early Bug Detection
  • 4 Essential Strategies for Enhancing Your Application Security Posture

Trending

  • Unlocking AI Coding Assistants Part 1: Real-World Use Cases
  • How to Practice TDD With Kotlin
  • Emerging Data Architectures: The Future of Data Management
  • Understanding Java Signals
  1. DZone
  2. Software Design and Architecture
  3. Security
  4. 7 Places to Do Automated Security Tests

7 Places to Do Automated Security Tests

Let's talk about adding security tests to your CI/CD.

By 
Tanya Janca user avatar
Tanya Janca
·
Jan. 08, 23 · Analysis
Likes (3)
Comment
Save
Tweet
Share
4.4K Views

Join the DZone community and get the full member experience.

Join For Free

When working in a DevOps environment, security professionals are sometimes overwhelmed with just how fast the Dev and Ops teams are moving. We’re used to having more control, more time, and more… time!

Personally, I LOVE DevSecOps (the security team weaving security throughout the processes that Dev and Ops are doing). Due to my enthusiasm, I am often asked by clients when, how, and where to inject various types of tests and other security activities. Below is my list of options that I offer to clients for automated testing (there’s lots more security to do in DevOps — this is only automated tests). They analyze the list together and decide which places make the most sense based on their current status, and choose tools based on their current concerns.

Seven Places for Automated Testing

  1. In the IDE:
    • Tools that check your code almost like a spell checker (not sure what this is called, sometimes called SAST)
    • Proxy management and dependency tools that only allow you to download secure packages
    • API and other linting tools that explain where you are not following the definition file
    • Software Composition Analysis to tell you that perhaps those packages are not so safe to use
  2. Pre-commit hook:
    • Secret scanning — let’s stop security incidents before they happen.
  3. At the code repository level:
    • Weekly schedule: SCA and SAST
    • Linting
    • IAC scanning
  4. In the pipeline: Must be fast and accurate (little-to-no false positives)
    • Secret scanning – again!
    • Infrastructure as Code scanning (IaC)
    • DAST with HAR file from Selenium, or just passive scan (no fuzzing)
    • SCA (again if you like, preferably with a different tool than the first time)
    • Container and infra scanning, plus their dependencies
    • Scanning infrastructure as code for poor policy, configuration, and missing patches
  5. Outside the pipeline:
    • DAST and fuzzing — automate to run weekly!
    • VA scanning/infra — should be done weekly
    • IAST — install during QA testing and pen tests, or in prod if you feel confident.
    • SAST — test for everything for each major release or after each large change, then do a manual review of results.
  6. Unit tests:
    • Take the devs' tests and turn them into negative tests/abuse cases.
    • Create unit tests from penetration test results to ensure we don't repeat our mistakes.
  7. Continuously:
    • Vulnerability management. You should be uploading all your scan data into some sort of system to look for patterns, trends, and (most of all) improvements.

You do not need to do all of these, or even half of these. The purpose of this article is to show you several possibilities in hopes that you take advantage of some of them.

Do YOU do testing in more places than this? Where, when, and how? Do you have other tools you use that you find helpful? Please comment below and let us know! 

security teams Testing

Published at DZone with permission of Tanya Janca. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Utilize These Detection-as-Code Best Practices
  • Overcoming MFA Test Automation Challenges
  • Shifting Left: A Culture Change Plan for Early Bug Detection
  • 4 Essential Strategies for Enhancing Your Application Security Posture

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!