Giter Club home page Giter Club logo

gofalcon's Introduction

gofalcon

Build CI gosec CodeQL Go Report Card Go Reference GitHub release (latest SemVer)

Golang-based SDK to CrowdStrike's Falcon APIs.

Gofalcon documentation is available on pkg.go.dev. Users are advised to consult this gofalcon documentation together with the comprehensive CrowdStrike API documentation published on Developer Portal. The easiest way to learn about the SDK is to consult the set of examples built on top of the SDK. What follows is a subset of these examples that can be found useful as stand-alone programs.

Example Description
falcon_sensor_download stand-alone tool that can be used to download CrowdStrike Falcon Sensor
falcon_event_stream stand-alone tool that can be used to stream events as they happen in CrowdStrike Falcon Console
falcon_cleanup_pods stand-alone tool that can be used to clean-up inactive pods from CrowdStrike Falcon Console
falcon_cspm_ioms stand-alone tool that leverages CrowdStrike Cloud Security Posture Management (CSPM) to list indicators of misconfigurations (IOMs)
falcon_detection_details stand-alone tool that outputs inventory of all Falcon Detections based on custom filter
falcon_discover_host_details stand-alone tool that can be used for auditing purposes and for gaining timely visibility into your environment
falcon_get_cid stand-alone tool that can be used to get Customer ID based on the API key pair
falcon_iocs stand-alone tool that can be used to add, delete or list Custom IOCs in the CrowdStrike Falcon Console
falcon_intel_indicators stand-alone tool that queries CrowdStrike Intelligence Indicators
falcon_intel_rules_download stand-alone tool that downloads CrowdStrike Falcon Intelligence Rule files
falcon_host_details stand-alone tool that outputs inventory of hosts registered to CrowdStrike Falcon platform
falcon_registry_token helper to generate container registry logic information for docker login
falcon_rtr_read_only_command stand-alone example to run basic read-only RTR (Real-Time Response) command against a specific agent
falcon_rtr_admin_create_and_run_script stand-alone example of running custom script on the specific agent using RTR (Real-Time Response) API
falcon_vulnerabilities stand-alone tool that outputs inventory of vulnerabilities affecting your environment
falcon_supported_kernels stand-alone tool that outputs short list recent Linux kernels supported by CrowdStrike Falcon for a given distribution
falcon_zta stand-alone tool that utilises Hosts and ZTA APIs and outputs ZTA findings for your environment
customize_transport use a falcon.TransportDecorator to modify all outgoing HTTP requests to the Falcon API

Gofalcon is a community-driven, open source project designed to aid developers in utilizing the CrowdStrike APIs effectively within their applications. While not a formal CrowdStrike product, Gofalcon is maintained by CrowdStrike and supported in partnership with the open source developer community.

Gofalcon is periodically refreshed to reflect the newest additions to the CrowdStrike API. Users of the SDK are advised to track the latest releases rather closely to ensure proper function in the unlikely event of an incompatible change to a CrowdStrike API.

Installation

go get github.com/crowdstrike/gofalcon/falcon

Usage Example

Various real-life examples can be found in the examples/ directory. The bare minimum example follows.

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/crowdstrike/gofalcon/falcon"
	"github.com/crowdstrike/gofalcon/falcon/client/incidents"
)

func main() {
	client, err := falcon.NewClient(&falcon.ApiConfig{
		ClientId: os.Getenv("FALCON_CLIENT_ID"),
		ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"),
		Context: context.Background(),
	})
	if err != nil {
		panic(err)
	}

	desc := "timestamp.desc"
	res, err := client.Incidents.CrowdScore(&incidents.CrowdScoreParams{
		Context: context.Background(),
		Sort: &desc,
	})
	if err != nil {
		panic(err)
	}
	payload := res.GetPayload()
	fmt.Printf("As of %s your CrowdScore is %d.\n",
		payload.Resources[0].Timestamp.String(), *payload.Resources[0].Score)
}

Versioning

This module adheres to the Go Module version numbering system, as described in detail at Go Module version numbering.

It is important to note that since this module is currently in the v0.x.x stage, backward compatibility cannot be guaranteed between minor versions (vMAJOR.MINOR.PATCH). Any breaking changes that may occur between versions will be explicitly mentioned in the release notes. It is highly recommended to pin the version of this module in your go.mod file to a specific patch version, and to update it only after reviewing the release notes and thorough testing.

gofalcon's People

Contributors

isimluk avatar redhatrises avatar dependabot[bot] avatar ffalor avatar shawndwells avatar carlosmmatos avatar kpham-polb avatar zeknox avatar jshcodes avatar johns31459 avatar chriscannon avatar faldridge avatar mrxinu avatar talgi avatar bndw avatar rquinlivan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.