{"id":19402131,"url":"https://github.com/robertdebock/ansible-role-forensics","last_synced_at":"2025-09-19T01:10:03.449Z","repository":{"id":52955552,"uuid":"227530565","full_name":"robertdebock/ansible-role-forensics","owner":"robertdebock","description":"Install and configure forensics on your system.","archived":false,"fork":false,"pushed_at":"2025-09-02T10:48:35.000Z","size":149,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-16T06:53:16.383Z","etag":null,"topics":["ansible","forensics","molecule","playbook","security","system","tox"],"latest_commit_sha":null,"homepage":"https://robertdebock.nl/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertdebock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"robertdebock"}},"created_at":"2019-12-12T05:53:07.000Z","updated_at":"2025-09-02T10:48:38.000Z","dependencies_parsed_at":"2023-02-15T07:16:27.669Z","dependency_job_id":"8993d24a-7ec0-4331-9433-953272369ae7","html_url":"https://github.com/robertdebock/ansible-role-forensics","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/robertdebock/ansible-role-forensics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-forensics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-forensics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-forensics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-forensics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdebock","download_url":"https://codeload.github.com/robertdebock/ansible-role-forensics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-forensics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275862875,"owners_count":25541903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","forensics","molecule","playbook","security","system","tox"],"created_at":"2024-11-10T11:22:02.150Z","updated_at":"2025-09-19T01:10:03.427Z","avatar_url":"https://github.com/robertdebock.png","language":null,"funding_links":["https://github.com/sponsors/robertdebock"],"categories":[],"sub_categories":[],"readme":"# [Ansible role forensics](#forensics)\n\nInstall and configure forensics on your system.\n\n|GitHub|GitLab|Downloads|Version|\n|------|------|---------|-------|\n|[![github](https://github.com/robertdebock/ansible-role-forensics/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-forensics/actions)|[![gitlab](https://gitlab.com/robertdebock-iac/ansible-role-forensics/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-forensics)|[![downloads](https://img.shields.io/ansible/role/d/robertdebock/forensics)](https://galaxy.ansible.com/robertdebock/forensics)|[![Version](https://img.shields.io/github/release/robertdebock/ansible-role-forensics.svg)](https://github.com/robertdebock/ansible-role-forensics/releases/)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/robertdebock/ansible-role-forensics/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- name: Converge\n  hosts: all\n  become: true\n  gather_facts: true\n\n  roles:\n    - role: robertdebock.forensics\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-forensics/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- name: Prepare\n  hosts: all\n  become: true\n  gather_facts: false\n\n  roles:\n    - role: robertdebock.bootstrap\n```\n\nAlso see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/robertdebock/ansible-role-forensics/blob/master/defaults/main.yml):\n\n```yaml\n---\n# defaults file for forensics\n\n# A directory where collected data can be stored locally.\nforensics_local_storage_path: /tmp/forensics\n\n# A list of commands to run.\nforensics_command_list:\n  - \"journalctl -xe\"\n  - \"ps -ef\"\n  - \"lsof\"\n  - \"systemctl status\"\n  - \"netstat -an\"\n  - \"netstat -tulpen\"\n\n# A list of directories to collect all files from.\nforensics_directory_list:\n  - \"/var/log\"\n  - \"/tmp\"\n  - \"/var/tmp\"\n  - \"/var/spool/cron\"\n  - \"/var/spool/anacron\"\n  - \"/etc/cron.d\"\n  - \"/etc/cron.daily\"\n  - \"/etc/cron.hourly\"\n  - \"/etc/cron.monthly\"\n  - \"/etc/cron.weekly\"\n  - \"/var/spool/at\"\n\n# A list of files to collect.\nforensics_file_list:\n  - \"/etc/passwd\"\n  - \"/etc/group\"\n  - \"/etc/shadow\"\n\n# A list of directories and patterns to collect.\nforensics_specific_file_list:\n  - path: \"/root\"\n    pattern: \".authorized_keys\"\n  - path: \"/root\"\n    pattern: \".bash_history\"\n  - path: \"/root\"\n    pattern: \".history\"\n  - path: \"/home\"\n    pattern: \".authorized_keys\"\n  - path: \"/home\"\n    pattern: \".bash_history\"\n  - path: \"/home\"\n    pattern: \".history\"\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-forensics/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub | GitLab |\n|-------------|--------|--------|\n|[robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap)|\n\n## [Context](#context)\n\nThis role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.\n\nHere is an overview of related roles:\n![dependencies](https://raw.githubusercontent.com/robertdebock/ansible-role-forensics/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[Alpine](https://hub.docker.com/r/robertdebock/alpine)|all|\n|[Amazon](https://hub.docker.com/r/robertdebock/amazonlinux)|Candidate|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|\n|[Fedora](https://hub.docker.com/r/robertdebock/fedora)|all|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|\n\nThe minimum version of Ansible required is 2.12, tests have been done to:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-forensics/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/robertdebock/ansible-role-forensics/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[robertdebock](https://robertdebock.nl/)\n\nPlease consider [sponsoring me](https://github.com/sponsors/robertdebock).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-forensics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdebock%2Fansible-role-forensics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-forensics/lists"}