Commit Graph

17 Commits

Author SHA1 Message Date
John U 75a5be3406 Fixed Windows 7 support (#110) (#113)
* Fixed Windows 7 support (#109)

* set minimum supported version to Windows 7 for NativeExamples and krabstests
2020-03-18 10:44:44 -07:00
Johannes Rave 3e974bd0c7 Create github action ci flow (#112) 2020-03-13 10:25:27 -07:00
John U 5ad82eff2a added PERFINFO_GROUPMASK typedefs and macros (#108)
* added PERFINFO_GROUPMASK macros

* added PERFINFO_GROUPMASK examples
2020-03-10 10:45:55 -07:00
John U 9863c2cb8a [bugfix] thread-safe schema_locator (#61) (#96)
* [poc] inject schema_locator

* Apply suggestions from code review

Co-Authored-By: Kyle Reed <kareed@kallanreed.com>

* inject schema_locator [C++/CLI]

* inject schema_locator into predicate

* Update krabs/krabs/schema.hpp

Co-Authored-By: Kyle Reed <kareed@kallanreed.com>

* updated docs

* updated nuspec

Co-authored-by: Kyle Reed <kareed@kallanreed.com>
2020-02-09 20:20:09 +04:00
John U 66ff440b91 .stop() should always call ControlTrace(STOP) - even if .open()/.start() has not been called (#90)
* .stop() should always call ControlTrace(STOP), and ignore any trace not found errors

* query_stats() should always call ControlTrace(QUERY),
and gracefully handle 'trace not found'

* tabs -> spaces

Co-authored-by: Matt Swann <3lemenopy@gmail.com>
2020-01-15 13:57:01 -08:00
John U aad6efc81f tracing Microsoft-Windows-Security-Auditing (#5) (#93)
Merge commit by: Matt Swann <3lemenopy@gmail.com>
2020-01-14 10:08:55 -08:00
Andrea Spadaccini 5b110cadf0 Cosmetic fixes (wording, formatting) (#86)
* Improve wording for ETW interface

Rename nightmare.hpp to etw.hpp to reflect its function,
and remove opinions on the ETW API in the comments.

* Add vim files to .gitignore

* Port Readme.txt to markdown and improve its formatting

* Improve .gitignore wording

* Fix typo in krabs/README.md

* Rename O365.Security.Native.ETW to Microsoft.O365.Security.Native.ETW

- change all occurrences in solution and project files;
- rename the directory containing the project;
- rename the project files.
2019-10-14 08:32:35 -07:00
Matt Swann ab944eeef1 Add support in C++/CLI for native ETW filtering (#84)
* Add support in C++/CLI for native ETW filtering

* Update nuspec

* Fix constructor comments

* Define a marshal_as template for List<T> to vector<T>

* Revert back to a helper method

* Add a generic list -> vector converter
Extract to a separate file

* CR feedback
2019-09-30 11:31:47 -07:00
Zac Brown 2cc089a0b7 Formatting updates and a little cleanup. (#65)
* Update ut.hpp

* More formatting fixes.

Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
2018-12-29 21:44:55 -08:00
Issahar G f4aa34ff7e boosting krabs performance by filtering by event id on api level (without predicates) (#60)
* add native support for event filters via API

* not finished:
created one unittest to show usage of native filtering...

* adjust memory usage out of scope....

* file delete event in tests....

* resolving issue 1 in comments of pull request

* issue 2 in pull request comments

* comment 3 in pull request: indentation

* issue 4: identation of if

* excessive comment

* fixed typedef

* removing hungarian convention

* camelCase to snake_case

* snake_case

* fixing more comments in pull request

* uncommenting the first test

* applying comments of pull request

* supporting native event filtering alternated with predicates on other settings

* fix identation

* fixing style

* fixing tabs to spaces

* fix identation

* basing on last change requests except the different method for filterDesc composition which is reasked by me if we could ignore or not.

* fix to reference

* undo excessive change in styling. The file whole written in other style

* fixing indentation of for loop
2018-12-28 11:22:51 -08:00
Matt Swann 10661ab379 Comply with requirements for MSFT-owned nuget packages (#56)
* Disable strict compliance on tests project to work around a VS2017 compiler bug: https://developercommunity.visualstudio.com/content/problem/288560/cppunittestassert-doesnt-compile-with-permissive-i.html

* Disabling /permissive- for all build flavors

* Add ESRP delay signing key

* Add Microsoft prefix per MSFT requirements

* Sign.cmd is no longer needed

* Update assembly namespace to match nuget id

* Fix nuget file references

* Update expected public key

* Bump nuget version to 2.0.0
2018-10-02 12:14:48 -07:00
Zac Brown 00eb0cbcb3 Address issues related to setting the C++ standard to C++17. Also upgrades boost to 1.68. (#51)
Signed-off-by: Zac Brown <zacbrown@users.noreply.github.com>
2018-09-19 11:49:26 -07:00
Johannes Rave ed1feacc52 Fix errors when building with /permissive- (#42) (#43)
* Fix errors when building with /permissive- (#42)

* Update solution and projects to VS 2017 (#42)
2018-04-11 21:43:50 -07:00
Zac Brown 12f32bfda4 Fix kernel examples. 2017-04-24 11:09:23 -07:00
Zac Brown (ODSP SECURITY) d2a053e762 Create DebugSigning and ReleaseSigning build targets for when we release to NuGet. This fixes issues with delay signing and the regular Debug/Release builds.
Signed-off-by: Zac Brown (ODSP SECURITY) <zbrown@microsoft.com>
2017-03-24 15:06:56 -07:00
Zac Brown c81c3c41f6 - Make projects for Managed and Native example code. (#3)
* - Make projects for Managed and Native example code.
- Create a 'tests' directory.
- Remove SampleCSharpKrabsExe as it is redundant with respect to the example code.

Signed-off-by: Zac Brown (ODSP SECURITY) <zbrown@microsoft.com>

* - Add note about TYPEASSERT and NDEBUG compilation flags to README.md.
- Add /W4 /WX compiler flags to NativeExample project.
- vcxproj.filters updates based on VS magic.

Signed-off-by: Zac Brown (ODSP SECURITY) <zbrown@microsoft.com>
2016-11-28 14:06:40 -08:00
Zac Brown (ODSP SECURITY) d741c16cc8 Initial public release. 2016-10-26 15:08:31 -07:00