Skip to content

Commit 05216f8

Browse files
committed
Add SUT and Emissary strategies
SUT and Emissary strategies are executed dynamically based on the new properties in the Job schema definition. Created new sUt.js and child classes for browser apps and APIs. Moved logic in step file app_scan_steps into strategies to be shared by various step files such as app and API specific. A host mounted directory is now required to put ephemeral files such as scripts, and in the future API definitions. Remove zaproxy dependency due to functionality now being in zAp Emissary. Change test plan (feature file) wording. Fix browser.js authenticated function to return false when not authenticated, also provide new function for Link strategy to check if authenticated.
1 parent 21e2932 commit 05216f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2628
-1073
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN echo user is: ${USER}, LOCAL_USER_ID is: ${LOCAL_USER_ID}, group is: ${GROUP
1414
#RUN apk add wget
1515

1616
# Remove git once zaproxy from package.json is in NPM
17-
RUN apk add --no-cache git
17+
#RUN apk add --no-cache git
1818
# Following taken from: https://github.com/mhart/alpine-node/issues/48#issuecomment-430902787
1919
RUN apk add --no-cache shadow && \
2020
if [ -z "`getent group $LOCAL_GROUP_ID`" ]; then \

config/config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ const schema = {
151151
default: ['html', 'json', 'md']
152152
}
153153
},
154+
upload: {
155+
dir: {
156+
doc: 'The location in the Emissary container where the app-scanner can put files for the Emissary to consume.',
157+
format: String,
158+
default: '/mnt/purpleteam-app-scanner/'
159+
}
160+
},
154161
spider: {
155162
maxDepth: {
156163
doc: 'Sets the maximum depth the spider can crawl, 0 for unlimited depth.',
@@ -236,6 +243,13 @@ const schema = {
236243
default: '/var/log/purpleteam/outcomes/'
237244
}
238245
},
246+
upload: {
247+
dir: {
248+
doc: 'The location in the app-scanner container where the app-scanner can put files for the Emissary to consume.',
249+
format: String,
250+
default: '/mnt/purpleteam-app-scanner/'
251+
}
252+
},
239253
cloud: {
240254
function: {
241255
region: {

0 commit comments

Comments
 (0)