Skip to main content

Utility functions for AttackIQ Platform API usage

Project description

AttackIQ Platform CLI

⚠️ BETA / WORK IN PROGRESS ⚠️

A command-line interface for interacting with the AttackIQ Platform API.

Status

This project is currently in beta and under active development. Features and APIs may change without notice. Feedback and contributions are welcome!

Installation

Build from source

go build -o aiq ./cmd/aiq

Install globally

go install ./cmd/aiq

Prerequisites

  • Go 1.22+
  • Valid AttackIQ Platform credentials
  • Basic familiarity with API concepts

Configuration

Set the following environment variables:

export ATTACKIQ_PLATFORM_URL="https://your-platform-url.attackiq.com"
export ATTACKIQ_PLATFORM_API_TOKEN="your-api-token"

Or create a .env file in your working directory:

ATTACKIQ_PLATFORM_URL=https://your-platform-url.attackiq.com
ATTACKIQ_PLATFORM_API_TOKEN=your-api-token

Usage

# List available commands
aiq --help

# List assessments
aiq assessments list

# Search assets
aiq assets search --query "hostname"

# Get scenario details
aiq scenarios get --scenario-id "abc123"

Shell Completion

The CLI supports shell completion for bash, zsh, fish, and PowerShell.

Bash

Current session:

source <(aiq completion bash)

Permanent installation:

# Linux
aiq completion bash | sudo tee /etc/bash_completion.d/aiq

# macOS
aiq completion bash > $(brew --prefix)/etc/bash_completion.d/aiq

Zsh

Current session:

source <(aiq completion zsh)

Permanent installation:

# Add to ~/.zshrc
echo "source <(aiq completion zsh)" >> ~/.zshrc

# Or install to completions directory
aiq completion zsh > "${fpath[1]}/_aiq"

Fish

Permanent installation:

aiq completion fish | source

# Or save to completions directory
aiq completion fish > ~/.config/fish/completions/aiq.fish

PowerShell

Current session:

aiq completion powershell | Out-String | Invoke-Expression

Permanent installation: Add the following to your PowerShell profile:

aiq completion powershell | Out-String | Invoke-Expression

Contributing

We welcome feedback and contributions! For detailed contribution guidelines, please see CONTRIBUTING.md.

Quick ways to contribute:

  • Open issues for bugs or feature requests
  • Submit pull requests
  • Provide feedback on the API design

License

MIT License - See LICENSE file for details

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiq_platform_api-0.2.38.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiq_platform_api-0.2.38-py3-none-any.whl (55.8 kB view details)

Uploaded Python 3

File details

Details for the file aiq_platform_api-0.2.38.tar.gz.

File metadata

  • Download URL: aiq_platform_api-0.2.38.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.8 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for aiq_platform_api-0.2.38.tar.gz
Algorithm Hash digest
SHA256 d7a161cccd15ad044a2e65281c52e1f5da75d9861bbcdbbad2dca1e41aea0a2b
MD5 a3da2a3eddcabe81ee572afe37dc0639
BLAKE2b-256 d7758b2c77e61dbe72a3da4b246c20acf43bae405af394a97044374f7c1e8738

See more details on using hashes here.

File details

Details for the file aiq_platform_api-0.2.38-py3-none-any.whl.

File metadata

  • Download URL: aiq_platform_api-0.2.38-py3-none-any.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.8 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for aiq_platform_api-0.2.38-py3-none-any.whl
Algorithm Hash digest
SHA256 fabbccefbb6011aaaea2e32e6494df9ea4cadf9da1185f15eaa55a2bee5793ad
MD5 160f60a52ae18dd497db5351a9fa7f31
BLAKE2b-256 0c2cda39fafc1113a33d17c34f5a405ce27110c9be03fbce05580ecd679a3c4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page