Skip to main content

Simple security lookups via CLI

Project description

Tests Release Downloads

seclook

seclook is a security lookup CLI tool that allows you to query various security services on the fly. It is essentially a wrapper over the requests library that removes the need to manually search within Web UIs or write your own requests in Postman or cURL to query these services.

You can look up information using commands like seclook [service] [value], where the service can be virustotal, shodan, emailrep, and so on. The value is the information you're querying for and varies by service.

Installation

  1. pip install seclook
  2. Copy config.ini.sample from this directory and place it in ~/.seclook/config.ini
  3. Open ~/.seclook/config.ini and add in your own API keys for the services you want to use.

Some services (e.g., GreyNoise, ThreatFox) don't require API keys, but may be rate-limited more quickly without one or have other limitations. Others (e.g., YARAify) do not need an API key at all and will not be referenced in the config file.

Usage

Basic usage of seclook is as follows:

seclook [service] [value]

For example, to look up IP 1.1.1.1 on AbuseIPDB, you'd run:

seclook abuseipdb 1.1.1.1

You can pipe the output to fx or jq for further processing:

seclook emailrep andrew@akatz.org | fx

You can grep the output for known keys to get specific information:

seclook virustotal 44d88612fea8a8f36de82e1278abb02f | grep malicious

Options

--export – Use this flag to export the results to a JSON file in your current working directory.

Supported services

You can also view supported services by passing list as the service name:

seclook list

Upgrading

To upgrade seclook to the latest version:

pip install --upgrade seclook

Contributing

If you'd like to contribute to seclook, please feel free to fork the repository, create a feature branch, and then submit a Pull Request.

License

MIT License

Contact

andrew@akatz.org

Project details


Download files

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

Source Distribution

seclook-0.8.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

seclook-0.8-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file seclook-0.8.tar.gz.

File metadata

  • Download URL: seclook-0.8.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for seclook-0.8.tar.gz
Algorithm Hash digest
SHA256 87c15222d6c81fc67bf0e5eed596ddb83d644eeb8be193cc332cb34edd778a70
MD5 fd35ee6a44e62a4537b53bb17200df6d
BLAKE2b-256 eb210119f1c6e896ecd2533eda2bf4a18f0f7415d2631015eb9905ffb25c5227

See more details on using hashes here.

Provenance

The following attestation bundles were made for seclook-0.8.tar.gz:

Publisher: cd.yml on ackatz/seclook-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seclook-0.8-py3-none-any.whl.

File metadata

  • Download URL: seclook-0.8-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for seclook-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc1a66bb80f37d1863e79d63f8a6e54c018e7eeaff33073092c6c84bd3bd841
MD5 90fbf0f19d7101d6d00d9a18c888ff76
BLAKE2b-256 af46f5b478970b4e89958b8620767a5b78eccf538ba358aea21467af049ba7a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for seclook-0.8-py3-none-any.whl:

Publisher: cd.yml on ackatz/seclook-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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