Categorygithub.com/grealyve/mitre-cti-scraper
repositorypackage
2.0.0+incompatible
Repository: https://github.com/grealyve/mitre-cti-scraper.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Mitre Att&ck Framework Scraper

v1.0

Table of Contents

Prerequisite

- go1.21
  • 7777 and 7778 ports should be available

Basic Usage

You can use pre-built binaries or you can build the project and use. It's up to your choice!

API Usage

You just send http GET request for http://0.0.0.0:7777/api/v1/apt_feed endpoint.

http://0.0.0.0:7777/api/v1/apt_feed?aptFeed=endpoints
http://0.0.0.0:7777/api/v1/apt_feed?aptFeed=tactics
http://0.0.0.0:7777/api/v1/apt_feed?aptFeed=technics
http://0.0.0.0:7777/api/v1/apt_feed?aptFeed=mitigations
http://0.0.0.0:7777/api/v1/apt_feed?aptFeed=relationships

Using API Withot Building

If you already installed go you can use this command to run the API.

go run main.go

Building & Running from source

1. Clone the repository

git clone https://github.com/grealyve/mitre-cti-scraper.git

2. Build & Run the API application

First, open a Command Prompt/Terminal. Then execute the following commands.

  • For Windows:
go build -o mitre-cti-scraper.exe
./mitre-cti-scraper.exe
  • For Linux:
go build -o mitre-cti-scraper
./mitre-cti-scraper

NOTE: If you cannot execute the command in Linux, you should give execute permission yourself on the file. You can use chmod +x mitre-cti-scraper. After running the API server, you'll see the following output.

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /api/v1/apt_feed          --> github.com/grealyve/mitre-cti-scraper/controller.GetAptFeed (5 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on localhost:7777

Sample Outputs:

Screenshot_1 Screenshot_2