Skip to content
Guest
Cybersecurity · Course Syllabus Show lessons
Infrastructure & Ops · 8 min read · Intermediate

Dependencies, Automated Backups & Incident Response

Keep packages patched, run automated encrypted backups, and follow a calm incident playbook.

What you'll learn

  • Audit npm/Composer/pip dependencies and pin lockfiles (`package-lock.json`)
  • Automate daily database backups with restricted permissions (`chmod 600`)
  • Follow a clear incident sequence: Contain -> Rotate Secrets -> Patch -> Audit -> Notify

Overview

Keep packages patched, run automated encrypted backups, and follow a calm incident playbook.

Code Example

# Audit dependencies regularly
npm audit --omit=dev

# Verify automated SQLite backups exist and are non-empty
ls -lh /var/backups/devpath/

Key Takeaways

  • Audit npm/Composer/pip dependencies and pin lockfiles (package-lock.json)
  • Automate daily database backups with restricted permissions (chmod 600)
  • Follow a clear incident sequence: Contain -> Rotate Secrets -> Patch -> Audit -> Notify

Quick Check

Check Your Understanding

Score: 0 / 1

1. Why should `package-lock.json` (or `composer.lock`) always be committed to version control?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind