Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Mitre Caldera API to communicate with Sandcat agents #521

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

inesusvet
Copy link
Contributor

Summary:
buck build //security/redteam/purple_team/ttpforge:ttpforge --out ttpforge
buck run //security/redteam/purple_team/ttpforge:ttpforge -- serve

Differential Revision: D59696048

Summary:
buck build //security/redteam/purple_team/ttpforge:ttpforge --out ttpforge
  buck run //security/redteam/purple_team/ttpforge:ttpforge -- serve

Differential Revision: D59696048
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59696048

@TTPForge-bot TTPForge-bot added the area/go Changes made to go resources label Dec 16, 2024
return
}
fullFilePath := cwd + "/" + filePath
if _, err := os.Stat(fullFilePath); err != nil {

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
w.Header().Set("Filename", filePath)

// Serve the file
http.ServeFile(w, r, filePath)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.

// Create a new file on disk
dstDir := fmt.Sprintf("%s/uploads/%s", cwd, agentID)
err = os.MkdirAll(dstDir, os.ModePerm)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
return
}
dst := fmt.Sprintf("%s/%s", dstDir, fh.Filename)
out, err := os.Create(dst)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This path depends on a
user-provided value
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go Changes made to go resources cla signed fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants