Skip to main content

A Cisco IOS & IOS-XE configuration audit tool

Project description

Cisco Config Auditor

Code style: black Imports: isort LICENSE Commit Activity Say Thanks!

Based on Use Cisco IOS XE Hardening Guide and some opinionated best practices.

This script gives an overview of the hardening techniques that can be used to secure a Cisco network device. Security is not a one-layer thing, yet, it depends on multiple factors. If you harden your devices, then it is a good starting point that increases the overall security of the environment you manage.

Installation

Install from PyPi

$ pip install ciscoconfaudit

Clone repo, create a virtual environment, and install requirements.

macOS or Linux

$ git clone https://github.com/Tes3awy/cisco-config-auditor.git
$ cd auditor
$ python3 -m venv .venv --upgrade-deps
$ source .venv/bin/activate .
(.venv) $ python3 -m pip install -r requirements.txt

Windows

Note On Microsoft Windows, it may be required to enable the Activate.ps1 script by setting the execution policy for the user.
You can do this by issuing the following PowerShell command:
PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
See About Execution Policies for more information.

In PowerShell

> git clone https://github.com/Tes3awy/cisco-config-auditor.git
> cd auditor
> python -m venv .venv --upgrade-deps
> .venv\Scripts\Activate.ps1  # Check
(.venv) > pip install -r requirements.txt

Usage

You can try out two examples in the repo.

(.venv) $ python3 online.py   # parses config from a device (Uses netmiko)
(.venv) $ python3 offline.py  # parses config from text file

Credits

This package was inspired by jonarm from cisco-ios-audit.

Author

Osama Abbas

Contibutions

You are welcome to contribute to this Cisco swiss-army knife.

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

ciscoconfaudit-0.1.0.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

ciscoconfaudit-0.1.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file ciscoconfaudit-0.1.0.tar.gz.

File metadata

  • Download URL: ciscoconfaudit-0.1.0.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for ciscoconfaudit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bea666f0bdbf8a6446289c09527d4010fbb0a7e4aea77dacb99eba345b21693f
MD5 09cd454f992cee49ebb3d74f82be585c
BLAKE2b-256 c73e3b4965388193d0cecbe8d7e4e4f070426bb2417d2baf8d573ef758e98664

See more details on using hashes here.

File details

Details for the file ciscoconfaudit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ciscoconfaudit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for ciscoconfaudit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dce90f11062c5c8071fd98689e32a4bc2682e714f3f9691e5d930db7bc3ff052
MD5 c442abb9362626d4beaf3221cb62651b
BLAKE2b-256 d7a3dd7f3b0d80929723081051c35544e3e4d0ca352d75daa1dc17db2f82ee11

See more details on using hashes here.

Supported by

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