Skip to content

Conversation

@alonsobsd
Copy link

Description

This is a initial support for FreeBSD

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@deacon-mp deacon-mp requested a review from Copilot October 6, 2025 22:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds initial support for FreeBSD by updating ability configuration files to include FreeBSD as a supported platform alongside Linux. The changes enable existing Linux-based abilities to run on FreeBSD systems.

  • Extended platform support from Linux-only to FreeBSD and Linux for existing abilities
  • Added dedicated FreeBSD platform configuration for the elasticat command-and-control ability
  • Updated 23 ability files across setup, response, detection, elastic_hunting, and command-and-control categories

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
data/abilities/setup/*.yml (7 files) Extended platform support to include FreeBSD alongside Linux
data/abilities/response/*.yml (6 files) Extended platform support to include FreeBSD alongside Linux
data/abilities/elastic_hunting/*.yml (3 files) Extended platform support to include FreeBSD alongside Linux
data/abilities/detection/*.yml (6 files) Extended platform support to include FreeBSD alongside Linux
data/abilities/command-and-control/1837b43e-4fff-46b2-a604-a602f7540469.yml Added dedicated FreeBSD platform configuration and extended existing platform support

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

sh:
command: |
server="#{app.contact.http}";
curl -s -X POST -H "file:elasticat.py" -H "platform:freebsd" $server/file/download > elasticat.py;
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FreeBSD section duplicates the exact same logic as the Linux section. Consider consolidating both platforms under a single freebsd,linux: entry to reduce code duplication and improve maintainability.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant