NilsBCode
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Kompaktere kompakte IT-Sicherheit ## Schutzziele * Vertraulichkeit * Integrität * Verfügbarkeit ## Prinzipien der Sicherheit ### Kerckhoffs Prinzip * Sicherheit eines symmetrischen Verfahrens sollte auf der geheimhaltung des Schlüssels basieren, nicht auf der des Verfahrens ### Security by Obscurity * Sicherheit wird durch die Geheimhaltung des Verfahrens gewährleistet ## Kryptographie ### Schutzziele * Geheimhaltung * Authentifizierung * Integrität * Verbindlichkeit ### Formen der Kryptographie | Form | Anwendung | Vorteil | Nachteil | |-|-|-|-| | symmetrisch | Standardverfahren für Kommunikation | schnell | benötigt sicheren Schlüsselaustausch vor Kommunikation. Für n Partner werden (n*(n-1))/2 Schlüssel benötigt | |asymmetrisch | sicherer Schlüsselaustausch für symmetrisches Verfahren | unterschiedliche Schlüssel zum Ver- und Entschlüsseln -> es werden für n Partner nur 2n Schlüssel benötigt | um ein vielfaches langsamer als symmetrische Verfahren. Unverfälschte Übertrageung öffentlicher Schlüssel essentiell. Einsatz digitaler Zertifikate auf öffentliche Schlüssel | ### Hash-Funktionen * Schwache Kollisionsresistenzt * man hat ne nachricht und will ne zweite nachricht finden, mit dem selben hash * Stark Kollisionsresistenzt * für jede nachricht kann keine zweite Nachtricht gefunden werden mit zweiten hash ### Verschlüsselungsmodi * Electronic Code Block (ECB) * Datenblöcke werden individuell verschlüsselt * gleiche Blöcke werden gleich verschlüsselt * Cipher Block Chaining (CBC) * Entschlüsselung paralelisierbar * gleiche Blöcke werden unterschiedlich verschlüsselt, wegen dem initial Vector * Counter Mode (CTR) * Ver-und Entschlüsselung Paralisierbar * gleiche Blöcke werden unterschiedlich verschlüsselt ### Diffie-Hellmann Ziel ist die Vereinbarung eines gemeinsamen geheimen Schlüssels für eine symmetrische Verschlüsselung. ### RSA * Sicherheit beruht auf der Schwierigkeit des Faktorisierungsproblems * Zerlegung großer Primzahl (derzeit) nicht effizient machbar #### Schlüsselerzeugung * zwei Primzahlen p und q * RSA-Modulus/Zahl berechnen n= p*q * Eulerschen Wert berechnen φ(n) = (p-1)⋅(q-1) * Wähle e für den öffentlichen Schlüssel zufällig, so dass folgendes gilt: * 1 < e < φ(n) und e und φ(n) sind teilerfremd ### El Gamal ## Authentifizierung ### Unterschiedliche Typen / Arten * Passwörter * Challenge-Response ### Angriffe auf diese Arten * Passwörter * Abhören während der Übertragung * Keylogger * Raten und Knacken von Passwörtern (Wörterbuch / Brute-Force) * Challenge-Response * Replay Angriff * Reflection Angriff ## Zugriffskontrolle ### Strategien * Blacklisting * alles unbekannte is gutartig eingestuft * Whitelisting * alles unbekannte is böse eingestuft ### Modelle * Gruppierung * Benutzer in Grpen zsmgefasst -> Rechte der Grp * Benutzergruppen * Anonymous * Any * Groups * User * Seperation of duties * 2 Personen für Transaktion benötigt * Rotation of duties * Wechsel der Aufgabengebiete um Durchführung unerlaubter Transaktionen zu erschweren * Negativ Rechte * Ausdrückliche Verweigerung der Zugriffsrechte * Komplexe / Bedingte Zugriffsberechtigung * Zugriffsrechte mit mehreren Bedinungen verknüpft * Matrix Modelle der Zugriffsrechte * Zugriffsrechte in Matrix * Access Controll List (ACL) * Nur besetzte Spalten werden ausgeführt * Capacity List (CL) * Objektorientiert, eine Zeile pro Benutzer * Lock/Key Konzept * Combi ACL & CL * Subject -> Capability List * Object -> Access Control List * Wenn Capability in ACL dann darf Subject auf Object zugreifen * Ringschutz * Ring Level Zugriff ### Typen * Discretionary Access Controll (DAC) * Subjektbestimmte Zugriffskontrolle * Unkoordinierte Vergabe -> Sicherheitslücken + Unübersichtlichekit * Mandatory Access Controll (MAC) * Zentrale Zugriffsrechtvergabe über ein systemweites Regelwerk * Role Based Access Controll (RBAC) * Zentrale Vergebung der Berechtigung basierend auf Aufgaben * Hierarchisches Modell mit n:m Beziehung ## Kommunikationssicherheit ### Firewalls #### Definition A firewall is an internetwork gateway that restricts data communication traffic to and from one of the connected networks and thus protects that network's system resources against threats from the other network #### Ziele * Sicherstellen, dass verkehr durch Firewall geleitet wird * Realsieriung einer Sicherhheitsstrategie (Zugriffsrestriktionen, ggfs. Protokollierungs- und Authentifizierungsanforderungen) #### Sicherheitszonen ![](https://i.imgur.com/ZxdLgnX.png) #### Reaktionen einer Firewall * Accept * Reject * Drop #### Arbeitsweise einer Firewall * Zustandslos * Entscheidung abhänig vom aktuell analysierten Datenverkehr * Regeln für beide Richtungen * Zustandsbehaftet bzw. dynamisch * Entscheidung von gepeicherten Datenverkehr * Regeln für Rückantwort wird dynamisch erstellt #### Abarbeitungsregeln * First Match * Last Match * Best-Fit #### Sicherheitsstrategien bei der Regeldefinition * Explizit * Implizit #### Regeln im Regelwerk einer Firewall * Clean up * Anti-Spoofing #### Firewall-Klassen * Paketfilter * Filtern der Datenpakete gemäß der geltenden Regeln * Proxy-Firewall * Stellt spezielle und beschränkte Dienste für Benutzer auf dem Gateway zur Verfügung * Applikationsfilter * Erweitert die Dienste des Verbindungs-Gateway * Besitzt Kenntnisse über die jweilige Anwendung, um dienstspeziefische Kontrolle durchzuführen ### IDS * Hardware oder Software basiert * Erkennt * Viren und Würmer * unerlaubte Zugriffe * Portscans * DoS * Bestandteile: * Collection Modul * hostbasierte IDS * Netzwerkbasierte IDS * Detection Modul * Angriffserkennungsmethoden * Pattern basiert (Mustererkennung) * Anomalien basiert * (+) weniger Konfigurationsaufwand & Erkennung unbekannter Angriffe * (-) Bestimmung eines geeigneten Schwellwerts & Angriffe in Lernphase werden als erlaubter Datenverkehr eingestuft * Analyse Modul * Response Modul * 2 Klassen * Aktive - dynamische Regeln automtisch zuschalten * Passive - wenn der Angreifer nix bemerken soll ### Firewall vs. IDS ![](https://i.imgur.com/gPAOjEf.png) ### VPN **Definition** Unter einem Virtual Private Network verstehen wir eine Netzinfrastruktur, bei der Komponenten eines privaten Netzes über ein öffentliches Netz, wie dem Internet, miteinander kommunizieren, wobei sie die Illusion besitzen, das Netz zu ihrer alleinigen Verfügung zu haben. #### Ziele 1. Die Sicherheitseigenschaften, die im privaten Netz gelten, auch im öffentlichen Netz aufrechtzuerhalten. 2. Authentifizierung der Benutzer des privaten Netzes. 3. Vertraulichkeit des Datenverkehrs, der über den öffentlichen Netz geleitet wird, zu gewährleisten. #### Prinzip * Verbinden von zwei Netzwerken der gleichen Sicherheitsstufe * Trennung durch Verschlüsselung #### Verschlüsselung auf Applikationsebene * Vorteile * Verschlüsselt + authentifiziert * Nachteile * jede datei muss einzeln verschlüsselt werden #### Verschlüsselung auf Netzwerkebene Kurz vor Übertragung vom OS verschlüsselt * Vorteile * Nur ein Tunnel für Übertragung mehrere Dateien/Objekte erfoderlich * Nachhteile * Endpunkt is unsicher, auch wenn Übertragung sicher ist #### Architekturen * Host-to-Host * Net-to-Net * Host-to-Net ### IPSec * Verwendet folgende Protokolle * Authentification Header (AH) * Encapsulating Security Payload (ESP) #### Tunnel Mode * Realisiert Host-to-Host VPN #### Transport Mode * Realisiert Net-to-Net VPN #### Perfect forward Secrecy * Für jede neue Verbindung ein neuen Schlüssel generieren * Schlüssel in regelmäßigen Abständen neu aushandeln ## Hochverfügbarkeit ### RAID ![](https://i.imgur.com/lQy0zot.png) #### Technische Realisierung * Hardware * Transparent für OS * teuer aber leistungsstark * Redundanzen z.b. stromversorgung * Software * durch OS * günstiger, aber nicht so performant wie HW Lösung * Hot Swap * austausch im laufenden Betrieb **Kann keine Software- und Benutzerfehler abfangen** #### Replikation * Daten auf unabhängige Server kopieren * Vorteile: * Getrente Datenverwaltung * Guter Schutz gegen HW-Fehler * Teilweise Schutz gegen SW- und Benutzerfehler #### Sicherung gegen SW- und Benutzerfehler * Löschungen zeitlich verzögern * Bei Modifikationen ursprüngliche Infos für bestimmte Zeit speichern * Verzögerung abhängig von: * Kapazität des Sicherungsmedium * Signifikanz der Daten/Aktualität * Häufigkeit der Datenveränderung * Notwendigkeit, alte Version zu halten ## Cloud Sicherheit ### Definition Cloud Computing is a model for enabling ubiquitous, convinient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. ### Prinzipien #### CHaracteristics * On demand self-service * Boad network access * Resource pooling * Rapid elasticity * Measured Service * Service Oriented Architecture * Multi-tenant capability * Pay per User Model #### Service Modelle * On-Premise * IaaS * PaaS * SaaS #### Deployment Modelle * Private Cloud * Community Cloud * Public CLoud * Hybrid Cloud #### Container Security * Container sind beste Kombination aus * efficent resource sharing * easy maintance * security * Vorteile * better resource control than vms * focus on primary task, managing applications * outsource secondary tasks, e.g. logging to higher level tools like CNVA and OpenShift

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully