ITAYC0HEN / karton-classifier

File type classifier for the Karton framework.

Home Page:https://github.com/CERT-Polska/karton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Classifier karton service

File type classifier for the Karton framework.

Entrypoint for samples. Classifies type of samples labeled as kind: raw, which makes them available for subsystems that receive samples with specific type only (e.g. raw => runnable:win32:exe)

Author: CERT.pl

Maintainers: psrok1, msm, nazywam

Consumes:

{
    "type": "sample",
    "kind": "raw"
    "payload": {
        "magic":  "output from 'file' command",
        "sample": <Resource>
    }
} 

Produces:

{
    "type":      "sample",
    "stage":     "recognized",
    "kind":      "runnable"  # Executable format default for OS platform
              || "document"  # Office document
              || "archive"   # Archive containing samples (zip, e-mails)
              || "dump"      # Dump from sandbox
              || "script",   # Script (js/vbs/bat...)
    "platform":  "win32" 
              || "win64" 
              || "linux" 
              || "android",
    "extension": "*",        # Expected file extension
    ... (other fields are derived from incoming task)
}

Usage

First of all, make sure you have setup the core system: https://github.com/CERT-Polska/karton

Then install karton-classifier from PyPi:

$ pip install karton-classifier

$ karton-classifier

Co-financed by the Connecting Europe Facility by of the European Union

About

File type classifier for the Karton framework.

https://github.com/CERT-Polska/karton

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 98.8%Language:Dockerfile 1.2%