-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSAST
More file actions
58 lines (49 loc) · 1.79 KB
/
Copy pathSAST
File metadata and controls
58 lines (49 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SAST Testing
https://gist.github.com/raziel007/f014f2e6fbec2f05c879dc806b70cebe
# SAST Testing
## VM Configuration
Allocate 128 MB VRAM.
Provide 2 vCPUs to a guest OS.
Disable 3D Acceleration.
At least 2 GB of memory.
Set graphics adapter to VBSVGA.
## Steps
Update Ubuntu VM
## Configure Ubuntu VM to enable GIT CLI:
sudo apt-get update
sudo apt-get install git
Clone OWASP Juice Shop
## Clone the repository from GitHub:
git clone https://github.com/juice-shop/juice-shop.git
cd juice-shop
cd frontend # This will limit the scope of testing
Install Docker on Ubuntu VM
## Use these guides to install Docker on a fresh VM (will also need curl):
DevOpsCube Guide
PhoenixNAP Guide
Take a snapshot of the VM.
How to Run Static Application Security Testing with HoruSec
Set up your environment:
## Use a virtual machine (e.g., VirtualBox).
Refer to the official tutorial for setup instructions.
Choose a target application:
## For this example, we're using the OWASP Juice Shop (a deliberately vulnerable application).
Clone the repository from GitHub:
git clone https://github.com/juice-shop/juice-shop.git
Navigate to the target directory:
## Use the cd command to enter the cloned repository:
cd juice-shop
cd frontend
Install and run HoruSec:
## Clone the HoruSec repository:
git clone https://github.com/ZupIT/horusec.git
Install HoruSec:
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash -s latest
Use Docker to run HoruSec:
sudo docker run -v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd):/src/horusec \
horuszup/horusec-cli:latest horusec start -p /src/horusec -P $(pwd) --config-file-path=/src/horusec/horusec-config.json
Analyze the results:
## Review the summary of vulnerabilities found.
Examine specific issues, including:
Language of the vulnerable code.