Skip to content

Commit 95a3b37

Browse files
committed
Merge branch 'dev' of github.com:sysflow-telemetry/sf-processor into dev
2 parents 30e9d0c + ae65f00 commit 95a3b37

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,26 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1313
> - **Fixed**: for any bug fixes.
1414
> - **Security**: in case of vulnerabilities.
1515
16-
## [[UNRELEASED](https://github.com/sysflow-telemetry/sf-collector/compare/0.1.0...HEAD)]
16+
## [[UNRELEASED](https://github.com/sysflow-telemetry/sf-processor/compare/0.2.0...HEAD)]
17+
18+
## [[0.2.0](https://github.com/sysflow-telemetry/sf-processor/compare/0.2.0...0.1.0)] - 2020-12-01
19+
20+
### Added
21+
22+
- Adds lists and macro preprocessing to deal with usage before declarations in input policy language.
23+
- Adds empty handling for process flow objects.
24+
- Adds `endswith` binary operator to policy expression language.
25+
- Added initial documentation.
26+
27+
### Changed
28+
29+
- Updates the grammar and intepreter to support falco policies.
30+
- Several refactorings and performance optimizations in policy engine.
31+
- Tuned filter policy for k8s clusters.
32+
33+
### Fixed
34+
35+
- Fixes module names and package paths.
1736

1837
## [0.1.0] - 2020-10-30
1938

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Supported tags and respective `Dockerfile` links
88

9-
- [`0.1.0`](https://github.com/sysflow-telemetry/sf-processor/blob/0.1.0/Dockerfile), [`latest`](https://github.com/sysflow-telemetry/sf-processor/blob/master/Dockerfile)
9+
- [`0.2.0`](https://github.com/sysflow-telemetry/sf-processor/blob/0.2.0/Dockerfile), [`latest`](https://github.com/sysflow-telemetry/sf-processor/blob/master/Dockerfile)
1010

1111
# Quick reference
1212

docs/POLICIES.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type, and comparative Falco attribute name. Our policy engine supports both SysF
7272
| Attributes | Description | Values | Falco Attribute |
7373
|:----------------|:-----------------|:------|----------|
7474
| sf.type | Record type | PE,PF,NF,FF,FE | N/A |
75-
| sf.opflags | Operation flags | [Operation Flags List](https://sysflow.readthedocs.io/en/latest/spec.html#operation-flags): remove `OP_` prefix | evt.type |
75+
| sf.opflags | Operation flags | [Operation Flags List](https://sysflow.readthedocs.io/en/latest/spec.html#operation-flags): remove `OP_` prefix | evt.type (remapped as falco event types) |
7676
| sf.ret | Return code | int | evt.res |
7777
| sf.ts | start timestamp(ns)| int64 | evt.time |
7878
| sf.endts | end timestamp(ns) | int64 | N/A |
@@ -105,7 +105,7 @@ type, and comparative Falco attribute name. Our policy engine supports both SysF
105105
| sf.pproc.createts | Parent process creation timestamp | int64 | N/A |
106106
| sf.file.fd | File descriptor number | int | fd.num |
107107
| sf.file.path | File path | string | fd.name |
108-
| sf.file.newpath | New file path (used in some FileEvents) | string | evt.args |
108+
| sf.file.newpath | New file path (used in some FileEvents) | string | N/A |
109109
| sf.file.name | File name (qo) | string | fd.filename |
110110
| sf.file.directory | File directory (qo) | string | fd.directory |
111111
| sf.file.type | File type | char 'f': file, 4: IPv4, 6: IPv6, 'u': unix socket, 'p': pipe, 'e': eventfd, 's': signalfd, 'l': eventpoll, 'i': inotify, 'o': unknown. | fd.typechar |
@@ -149,7 +149,8 @@ The policy language supports the following operations:
149149
| A > B | Returns true if A is greater than B. Note, if B is a list, A only has to be greater than one element in the list. If B is a list, it must be explicit. It cannot be a variable. | sf.flow.wops > 1000 |
150150
| A >= B | Returns true if A is greater than or equal to B. Note, if B is a list, A only has to be greater than or equal to one element in the list. If B is a list, it must be explicit. It cannot be a variable. | sf.flow.wops >= 1000 |
151151
| A in B | Returns true if value A is an exact match to one of the elements in list B. Note: B must be a list. Note: () can be used on B to merge multiple list objects into one list. | sf.proc.exe in (bin_binaries, usr_bin_binaries) |
152-
| A startswith B | Returns true if string A startswith string B | sf.file.path startswith '/home' |
152+
| A startswith B | Returns true if string A starts with string B | sf.file.path startswith '/home' |
153+
| A endswith B | Returns true if string A ends with string B | sf.file.path endswith '.json' |
153154
| A contains B | Returns true if string A contains string B | sf.pproc.name=java and sf.pproc.cmdline contains org.apache.hadoop |
154155
| A icontains B | Returns true if string A contains string B ignoring capitalization | sf.pproc.name=java and sf.pproc.cmdline icontains org.apache.hadooP |
155156
| A pmatch B | Returns true if string A partial matches one of the elements in B. Note: B must be a list. Note: () can be used on B to merge multiple list objects into one list. | sf.proc.name pmatch (modify_passwd_binaries, verify_passwd_binaries, user_util_binaries) |

0 commit comments

Comments
 (0)