All Projects → grantseltzer → Karn

grantseltzer / Karn

Licence: mpl-2.0
Simplifying Seccomp enforcement in containerized or non-containerized apps

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Karn

Marsnake
System Optimizer and Monitoring, Security Auditing, Vulnerability scanner for Linux, macOS, and UNIX-based systems
Stars: ✭ 16 (-84.62%)
Mutual labels:  security-tools, security-hardening
Golang Tls
Simple Golang HTTPS/TLS Examples
Stars: ✭ 857 (+724.04%)
Mutual labels:  security-tools, security-hardening
Secretscanner
Find secrets and passwords in container images and file systems
Stars: ✭ 895 (+760.58%)
Mutual labels:  security-tools, containers
Terraform Aws Secure Baseline
Terraform module to set up your AWS account with the secure baseline configuration based on CIS Amazon Web Services Foundations and AWS Foundational Security Best Practices.
Stars: ✭ 596 (+473.08%)
Mutual labels:  security-tools, security-hardening
Audit scripts
Scripts to gather system configuration information for offline/remote auditing
Stars: ✭ 55 (-47.12%)
Mutual labels:  security-tools, security-hardening
Awesome Security Hardening
A collection of awesome security hardening guides, tools and other resources
Stars: ✭ 630 (+505.77%)
Mutual labels:  security-tools, security-hardening
Trivy
Scanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues
Stars: ✭ 9,673 (+9200.96%)
Mutual labels:  security-tools, containers
Electriceye
Continuously monitor your AWS services for configurations that can lead to degradation of confidentiality, integrity or availability. All results will be sent to Security Hub for further aggregation and analysis.
Stars: ✭ 255 (+145.19%)
Mutual labels:  security-tools, security-hardening
Linux Secureboot Kit
Tool for complete hardening of Linux boot chain with UEFI Secure Boot
Stars: ✭ 54 (-48.08%)
Mutual labels:  security-tools, security-hardening
Libpathrs
C-friendly API to make path resolution safer on Linux.
Stars: ✭ 47 (-54.81%)
Mutual labels:  security-hardening, containers
Xss Listener
🕷️ XSS Listener is a penetration tool for easy to steal data with various XSS.
Stars: ✭ 414 (+298.08%)
Mutual labels:  security-tools, security-hardening
Vuls
Agent-less vulnerability scanner for Linux, FreeBSD, Container, WordPress, Programming language libraries, Network devices
Stars: ✭ 8,844 (+8403.85%)
Mutual labels:  security-tools, security-hardening
Prowler
Prowler is a security tool to perform AWS security best practices assessments, audits, incident response, continuous monitoring, hardening and forensics readiness. It contains more than 200 controls covering CIS, ISO27001, GDPR, HIPAA, SOC2, ENS and other security frameworks.
Stars: ✭ 4,561 (+4285.58%)
Mutual labels:  security-tools, security-hardening
Hardening
Hardening Ubuntu. Systemd edition.
Stars: ✭ 705 (+577.88%)
Mutual labels:  security-tools, security-hardening
Krane
Kubernetes RBAC static Analysis & visualisation tool
Stars: ✭ 254 (+144.23%)
Mutual labels:  security-tools, security-hardening
Csp
The Cyber Security Platform MeliCERTes is part of the European Strategy for Cyber Security. MeliCERTes is a network for establishing confidence and trust among the national Computer Security Incident Response Teams (CSIRTs) of the Member States and for promoting swift and effective operational cooperation.
Stars: ✭ 23 (-77.88%)
Mutual labels:  security-tools, containers
Kubestriker
A Blazing fast Security Auditing tool for Kubernetes
Stars: ✭ 213 (+104.81%)
Mutual labels:  security-tools, containers
Privacy.sexy
Open-source tool to enforce privacy & security best-practices on Windows and macOS, because privacy is sexy 🍑🍆
Stars: ✭ 221 (+112.5%)
Mutual labels:  security-tools, security-hardening
Canary
Canary: Input Detection and Response
Stars: ✭ 29 (-72.12%)
Mutual labels:  security-tools, security-hardening
Lynis
Lynis - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional.
Stars: ✭ 9,137 (+8685.58%)
Mutual labels:  security-tools, security-hardening

Karn

Use Karn to enforce seccomp rules in your code. Select the entitlements that your application needs and not the ones it doesn't need!

karn

See associated blog post

GoDoc

Table of Contents

How it works

Seccomp is a security facility of the Linux kernel. It allows you to create filters for system calls on a process by process basis. For example, you can create a seccomp filter that would allow all system calls except for chmod. You can then load that filter into a running process. If the chmod system call is then used the kernel would return an error to your process which can handle it however it's programmed to.

Despite the power that seccomp provides, it's very difficult to use in practice. You must have deep knowledge of all system calls, and even then the task is daunting. This is where Karn comes in.

Karn uses entitlements to abstract away the need to know all the system calls your application will need. Getting started is as simple as familiarizing yourself with the entitlements Karn offers.

Karn's entitlements aren't quite allow or deny lists. The installed seccomp filter has a default action of 'Allow'. Meaning any unspecified system call in the filter will be allowed. On top of that, any Karn entitlement that is not specified will be Denied. This is to avoid superfluous blocking of obscure/harmless system calls.

Karn can be used for generating profiles for containers, or can be used as a library in your non-containerized application. See the quickstart guide below for more.

Entitlements

See godoc here

Dependencies

See docs/dependencies.md

Quickstart

See docs/quickstart.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].