An open API service indexing awesome lists of open source software.

https://github.com/ait-testbed/atb-ansible-sshkeyprivesc

AECID Testbed Ansible Role to create a privesc vulnerability on a server by adding an ssh-key with weak permissions
https://github.com/ait-testbed/atb-ansible-sshkeyprivesc

aecid ansible ansible-role atb privesc testbed vulnerability

Last synced: about 2 months ago
JSON representation

AECID Testbed Ansible Role to create a privesc vulnerability on a server by adding an ssh-key with weak permissions

Awesome Lists containing this project

README

          

AECID Testbed Ansible SSH-Key Privilege Escalation
==================================================

This ansible role generates a ssh-key with weak permissions on a machine. This key is added to /root/authorized_keys
and can be used by malicious user to escalate the privileges.

Requirements
------------

No requirements

Role Variables
--------------

Install the weak key into the user-home of the following user:

```
sshkeyprivesc_user: webdev
```

** This user will be created if it does not exist **

Dependencies
------------

- Ubuntu/Debian

Example Playbook
----------------

```
- hosts: vulnserver
roles:
- role: sshkeyprivesc
vars:
sshkeyprivesc_user: johnsmith
```

License
-------

GPL-3.0

Author Information
------------------

Wolfgang Hotwagner (https://www.ait.ac.at)