
Desertcart purchases this item on your behalf and handles shipping, customs, and support to Romania.
Your server is running. But is it secure? Volume 4 of Python Scripting for Cybersecurity: Linux Edition shifts from investigation to prevention โ and teaches you to harden, monitor, and prove compliance. You'll build a complete security operations toolkit from scratch, using only Python's standard library and the tools already on your Linux system. What you'll build: An Automated Hardening Script that closes the gap between a fresh Ubuntu install and a production-ready secure server โ applying SSH lockdown, kernel network settings, file permissions, and service management in a single run with full dry-run safety and a JSON audit trail A Vulnerability Scanner that cross-references your installed packages against the NIST National Vulnerability Database, ranks every finding by CVSS severity score, and produces a prioritized remediation plan with the exact commands to fix each issue A Log Rotation and Retention Manager driven by a .ini configuration file โ compressing aging logs with gzip, deleting archives past their retention window, and recording every action in a JSON Lines audit log A Patch Status Reporter that inventories every installed package, tracks patch compliance against SLA thresholds over time, assigns a letter grade to your patch posture, and generates the kind of documentation an auditor actually wants to see A Security Baseline Enforcer that loads a declarative JSON baseline, audits your system against every requirement, and in enforce mode automatically corrects every deviation it finds โ bringing drift back to policy without manual intervention What you'll learn: subprocess at depth โ running system commands without shell injection, capturing output, handling timeouts, and parsing structured command output safely configparser โ reading and writing .ini configuration files the way Linux tools were designed to use them urllib โ calling real external REST APIs without any third-party libraries, including rate limiting, timeouts, and JSON response parsing gzip and shutil โ compressing files in memory-efficient chunks and performing safe file operations with proper error handling pwd โ querying system user and group databases through Python's standard library, the right way Who this book is for: This book is for readers who completed Volumes 1 and 2, or who are comfortable with Python file I/O, subprocess, and working from the terminal. Volume 3 experience is helpful but not required. Every project starts from three lines of code and builds up one function at a time, with a test and expected output after every step. Lab requirements: Ubuntu 22.04 VM (VirtualBox or similar) Python 3.10+ No third-party libraries required โ 100% Python standard library No cloud account or paid tools required โ one optional free NVD API key for Project 2
| Best Sellers Rank | #789,212 in Books ( See Top 100 in Books ) #86 in Linux Programming #182 in Linux Networking & System Administration #604 in Cloud Computing (Books) |
Trustpilot
2 weeks ago
4 days ago