https://github.com/gia-lexa/endpoint_sim
Personal test harness framework for telemetry data, used for testing EDR agent performance.
https://github.com/gia-lexa/endpoint_sim
rails ruby
Last synced: 3 months ago
JSON representation
Personal test harness framework for telemetry data, used for testing EDR agent performance.
- Host: GitHub
- URL: https://github.com/gia-lexa/endpoint_sim
- Owner: gia-lexa
- License: mit
- Created: 2024-09-27T01:03:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T17:11:59.000Z (over 1 year ago)
- Last Synced: 2025-08-11T00:46:43.899Z (11 months ago)
- Topics: rails, ruby
- Language: Ruby
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EndpointSim
## Summary
EndpointSim is a Rails API test harness framework, designed to simulate endpoint activity across macOS and Linux platforms. It enables users to generate various telemetry data such as process starts, file management, and network transmissions. This data could ostensibly be used to validate EDR agent performance.
## Tests
Each controller includes a spec file, which uses RSpec to test its behavior in a broader context, including validatng the full HTTP response cycle.
Run a single test:
`bundle exec rspec `
Run the test suite:
`bundle exec rspec`
## Simulation Examples
### Create a File
```
curl -X POST http://localhost:3000/api/v1/files \
-H "Content-Type: application/json" \
-d '{"file_path": "/tmp/test_file.txt", "content": "test file data"}'
```
### Start a Process (with a macOS executable)
```
curl -X POST http://localhost:3000/api/v1/processes \
-H "Content-Type: application/json" \
-d '{"executable": "/bin/ls", "args": ["Hello World"]}'
```
### Send Network Transmission
```
curl -X POST http://localhost:3000/api/v1/network \
-H "Content-Type: application/json" \
-d '{"destination_address": "localhost", "destination_port": 3000, "data": "Greetings, Professor Falken."}'
```
Disclaimer
This project is an in-progress technical demonstration of a personal use test harness. While provided under the MIT License, it is not optimized for production use, and no guarantees are made regarding security, reliability, or real-world performance. It serves as an exploration of best practices in test harness development.