]> git.ipfire.org Git - thirdparty/krb5.git/commit
KDC Audit infrastructure and plugin implementation
authorZhanna Tsitkov <tsitkova@mit.edu>
Sat, 20 Jul 2013 19:47:42 +0000 (15:47 -0400)
committerBen Kaduk <kaduk@mit.edu>
Sat, 5 Oct 2013 00:25:49 +0000 (20:25 -0400)
commit1003f0173f266a6428ccf2c89976f0029d3ee831
treea845ce60636aca59e80f4db95e4b6ec82788081c
parentb6d5e3af806bb60c37a831a72eff3e7e99bea6e9
KDC Audit infrastructure and plugin implementation

Per project http://k5wiki.kerberos.org/wiki/Projects/Audit

The purpose of this project is to create an Audit infrastructure to monitor
security related events on the KDC.

The following events are targeted in the initial version:
- startup and shutdown of the KDC;
- AS_REQ and TGS_REQ exchanges.  This includes client address and port, KDC
  request and request ID, KDC reply, primary and derived ticket and their
  ticket IDs, second ticket ID, cross-realm referral, was ticket renewed and
  validated, local policy violation and protocol constraints, and KDC status
  message.

Ticket ID is introduced to allow to link tickets to their initial TGT at any
stage of the Kerberos exchange. For the purpose of this project it is a private
to KDC ticket ID: each successfully created ticket is hashed and recorded
into audit log. The administrators can correlate the primary and derived
ticket IDs after the fact.

Request ID is a randomly generated alpha-numeric string. Using this ID an
administrator can easily correlate multiple audit events related to a single
request. It should be informative both in cases when the request is sent to
multiple KDCs, or to the same KDC multiple times.

For the purpose of testing and demo of the Audit, the JSON based modules are
implemented: "test" and "simple" audit modules respectively.
The file plugins/audit/j_dict.h is a dictionary used in this implememtations.

The new Audit system is build-time enabled and run-time pluggable.

[kaduk@mit.edu: remove potential KDC crashes, minor reordering]

ticket: 7712
target_version: 1.12
29 files changed:
src/Makefile.in
src/configure.in
src/include/k5-int.h
src/include/krb5/audit_plugin.h [new file with mode: 0644]
src/kdc/Makefile.in
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/kdc_audit.c [new file with mode: 0644]
src/kdc/kdc_audit.h [new file with mode: 0644]
src/kdc/main.c
src/lib/krb5/krb/plugin.c
src/plugins/audit/Makefile.in [new file with mode: 0644]
src/plugins/audit/deps [new file with mode: 0644]
src/plugins/audit/j_dict.h [new file with mode: 0644]
src/plugins/audit/kdc_j_encode.c [new file with mode: 0755]
src/plugins/audit/kdc_j_encode.h [new file with mode: 0644]
src/plugins/audit/libauditjenc.exports [new file with mode: 0644]
src/plugins/audit/simple/Makefile.in [new file with mode: 0644]
src/plugins/audit/simple/au_simple_main.c [new file with mode: 0644]
src/plugins/audit/simple/deps [new file with mode: 0644]
src/plugins/audit/simple/k5audit.exports [new file with mode: 0644]
src/plugins/audit/test/Makefile.in [new file with mode: 0644]
src/plugins/audit/test/au_test.c [new file with mode: 0644]
src/plugins/audit/test/deps [new file with mode: 0644]
src/plugins/audit/test/k5audit_test.exports [new file with mode: 0644]
src/tests/Makefile.in
src/tests/au_dict.json [new file with mode: 0644]
src/tests/jsonwalker.py [new file with mode: 0644]
src/tests/t_audit.py [new file with mode: 0644]