concept test in category security

appears as: test, tests, Test, The tests, tests
Secure by Design

This is an excerpt from Manning's book Secure by Design.

To detect entity expansion, add a test in your build pipeline with a recursive entity definition. If the entity is expanded and the XML is accepted, then the test should fail because the parser might be vulnerable to expansion attacks.

Listing 8.12 Simple example of configuring a test running a DDoS attack
bees up -s 8 -g public -k your_ssh_key    #1  
bees attack -n 100000 -c 500 -u website_url    #2  
bees down    #3  

#1   Spins up eight EC2 server instances to attack the website
#2   Sends 100,000 requests, 500 at a time, to the specified url
#3   Spins down the EC2 server instances

Regardless of which product you choose, having tests in your delivery pipeline that place your system under a heavy load is an efficient way of flushing out weaknesses that could be exploitable by an attacker in production. But a DoS attack doesn’t require thousands of parallel requests to be successful. Availability could be affected in a more sophisticated way; for example, by exploiting domain rules that execute under the radar.