Skip to content

ReconInfoSec/ansible-greynoise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-greynoise

Ansible modules for the GreyNoise API

A full example playbook can be found in main.yml.

ansible-playbook main.yml -vvvv

Modules

  • greynoise
    • list_tags
    • query_ip
    • query_tag

Examples

- name: List all tags
  greynoise:
    action: list_tags
  register: results

- name: Query IP with GreyNoise
  greynoise:
    action: query_ip
    ip: "178.153.38.136"
    key: "{{ greynoise_api_key }}"
  register: results

- name: Show name and category with intention malicious from previous results
  debug:
    msg: "{{ item.name }} - {{ item.category }}"
  with_items:
    - "{{ results.json.records }}"
  when: item.intention == "malicious"

- name: Query tag with GreyNoise
  greynoise:
    action: query_tag
    tag: "PHP_WORM"
    key: "{{ greynoise_api_key }}"
  register: results

- name: Show IP and organization with intention malicious from previous results
  debug:
    msg: "{{ item.ip }} - {{ item.metadata.org }}"
  with_items:
    - "{{ results.json.records }}"
  when: item.intention == "malicious"

About

Ansible modules for the GreyNoise API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages