2023-10-03 17:34:58 +03:00
2023-08-23 14:40:32 +00:00
2023-07-05 17:52:42 +00:00
2023-07-03 16:43:20 +00:00
2022-06-29 21:50:10 +03:00
2022-09-21 20:58:22 +02:00
2022-06-29 21:50:10 +03:00
2022-10-26 07:23:11 +02:00
2022-06-29 21:50:10 +03:00
2022-07-07 19:05:57 +03:00
2023-10-03 17:34:58 +03:00

openappsec/attachment

About

open-appsec is a machine learning security engine that preemptively and automatically prevent threats against Web Application & APIs.

open-appsec Attachments connect between processes that provide HTTP data and the open-appsec Agent security logic.

An attachment gets HTTP data (URL, Header, Body, Response) from a hosting process and delivers it to an open-appsec process known as HTTP Transaction handler.

To deal with potential issues where the HTTP Transaction handler process is not responding, the Attachment implements a retry mechanism and configurable fail-open/fail-close mechanism.

This repository will host Attachment for different platforms. The first one is the open-appsec attachment for NGINX, implemented as a standard NGINX dynamically loadable module (plugin).

open-appsec NGINX attachment compilation instructions

We Provide an Example for compilation instructions on alpine, the attachment can be complied on other environments that match the environment hosting nginx, yet compilation instructions could need adjustments

The attachment can be compiled to support an existing nginx server or an nginx/ingress-nginxdocker.

Your compilation environment must contain git, docker, cmake and g++.

Before compiling, ensure the latest development versions of the following libraries:

  • PCRE
  • libxml2
  • zlib
  • OpenSSL
  • Geoip
  • Python3
 $ apk update
 $ apk add pcre-dev libxml2-dev zlib-dev openssl-dev geoip-dev linux-headers python3

Compiling the attachment code for an existing nginx server

On your existing nginx server:

  1. Run command to extract nginx compilation flags to a file
 $ nginx -V &> /tmp/nginx.ver

On your compilation environment:

  1. Clone this repository
  2. Copy the file created on your nginx server (the previous section) to your compilation environment to the path /tmp/nginx.ver
  3. Run Configuration script
  4. Run CMake command
  5. Run make command
 $ git clone https://github.com/openappsec/attachment.git
 $ ./attachments/nginx/ngx_module/nginx_version_configuration.sh --conf /tmp/nginx.ver build_out
 $ cmake -DCMAKE_INSTALL_PREFIX=build_out .
 $ make install

NGINX plugin associated libraries

The NGINX plugin uses these libraries: shmem_ipc, compression_utils, and nginx_attachment_util.

Description
Attachments connect between processes that provide HTTP data and the open-appsec Agent security logic.
Readme Pixar 1.2 MiB
Languages
C 83.6%
Go 5.4%
C++ 4%
Python 2.6%
Lua 1.6%
Other 2.8%