/images/avatar.jpg

eBPF-tracing 使用 eBPF 编写监控类程序

eBPF 程序的跟踪能力 The ability to attach eBPF programs to trace points as well as kernel and user application probe points allows unprecedented visibility into the runtime behavior of applications and the system itself. By giving introspection abilities to both the application and system side, both views can be combined, allowing powerful and unique insights to troubleshoot system performance problems. Advanced statistical data structures allow to extract meaningful visibility data in an efficient manner, without requiring the export of vast amounts of sampling data as typically done by similar systems. 如何找到你所需要的追踪点? 首先,我们需要明确自身的需求,考虑清楚我们需要获取哪一些数据信息,再从这些数据信息的类型出发找到其对应的追踪位置。在 eBPF 程序中有以下这几种常用的追踪点类型: kprobe 内核探针 uprobe 用户程序探针 tracepoint 内核

XDP-tutorial 学习如何编写 eBPF XDP 程序

XDP-Tutorial ⭐ 本文章仍然在不断的更新中,因此文章结构以及内容可能会时常发生变化。同时本领域也是作者刚刚涉及的领域,难免在文本内容中出现错误,还望指正,大家一同学习共勉。 XDP-Tutorial 是一个 Github 上的 repo,皆在指导人们如何遵循最基本的步骤,高效地实现为内核中的 XDP 系统进行编程。我会随着这个课程的步伐与大家一同探寻 Linux 内核世界的奥秘以及如何使用高性能的 XDP 程序对网络数据报进行处理。随着学习的深入,我会列出理解每一节课程的编程实现

InfoSec-Lab2-apollo

Architecture Design 模拟实现128位信息的加密通信过程。 实验设计包含三方:A,B,C。A与B之间进行128位信息的加密交换。C负责为A和B各生成一对公私钥对,并分别把对应的私钥传给A和B,并把他们的公钥公开。实现本实验需求的架构设计如下图所示, 项目数据流图" 项目数据流图 Protocol Design 在该实验需求中,ServerA与ServerB之间使用Asymmetric Encryption Scheme进行加密通信,ServerC充当密钥签发中心,负责为S

·密码学原理课程 —— Private-Key Cryptography Ⅰ

Private-Key (Symmetric) Cryptography 章节思维导图" 章节思维导图 在本章节中,我们开始介绍两大密码学方向中的私钥/对称密码学(Private-Key/Symmetric Cryptography)方向。 (1)我们将会从弱化完善保密理论安全性开始,得到一个在实践生产中能够被接受并且符合实际人们对安全性需求的安全定义(computational secrecy)。 (2)接着我们从 computational secrecy 出发,给出一种最为基本的安全性定义—— EAV-Secur

·密码学原理课程 —— Perfectly Secret Encryption

Perfectly Secret Encryption ​ 本章节的思维导图如下所示, 章节思维导图" 章节思维导图 ​ 在本章节中我们主要介绍完善保密理论(Perfectly Secret Encryption)并且给出一些在往下章节中经常使用的检验密码方案安全性的实验交互模型。在描述这些模型时,我们需要使用到一些基础的概率论知识,并且还需要讨论一些用于该模型中随机算法。 Generating randomness ​ 在密码学中,我们经常需要产生并使用一些随机数,这些随机数的概率分布影响着密码的安全性,一些随

·密码学原理课程 —— Introduction

Course Overview Cryptology: Science concerned with data communication and storage in secure and usually secret form. Cryptography (密码学) Cryptanalysis (密码分析学) Our goals: the basic principles of modern cryptography mathematical assumptions (数学假设) security proof (安全证明) some standard (secure) constructions (一些现行标准密码方案的构造) Textbook: Introduction to MODERN CRYPTOGRAPHY 3rd edition Course Structure Introduction To Modern Cryptography" Introduction To Modern Cryptography Symmetric Asymmetric Encryption Private-Key Encryption Public-Key Encryption Authentication Message Authentication Codes Digital Signature 课程由古典密码学开始,讲述经典的古典密码(Caesar Cipher & Vigenère Cipher)以及从其中所抽象出来的编码思想(单表置换密码与多表置换密码)。这个时期的密码更像是个人的灵光乍现(heur