Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the initial files for the User example
[refs #5f494dd1073b]
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM alpine:latest | ||
|
||
RUN mkdir /data \ | ||
&& touch /data/secrets \ | ||
&& chmod 700 /data/secrets | ||
|
||
COPY evil-script.sh / | ||
|
||
CMD ["/evil-script.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: "3" | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
volumes: | ||
- ./evil-script.sh:/evil-script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
echo This script runs as `whoami` | ||
echo Trying to gain access to sensitive information in /data/secrets | ||
cat /data/secrets > /dev/null && echo "Successfully opened the file! Posting stolen secrets on social media platforms..." | ||
|