mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
DNS policy scripts documentation cleanup/tweaks.
This commit is contained in:
parent
68784634ff
commit
650177cde0
8 changed files with 38 additions and 22 deletions
|
@ -129,9 +129,15 @@ endmacro(REST_TARGET)
|
|||
# Schedule Bro scripts for which to generate documentation.
|
||||
# Note: the script may be located in a subdirectory off of one of the main
|
||||
# directories in BROPATH. In that case, just list the script as 'foo/bar.bro'
|
||||
rest_target(${POLICY_SRC_DIR} conn.bro user)
|
||||
rest_target(${POLICY_SRC_DIR} dns.bro user)
|
||||
rest_target(${CMAKE_CURRENT_SOURCE_DIR} example.bro internal)
|
||||
rest_target(${POLICY_SRC_DIR} conn.bro user)
|
||||
rest_target(${POLICY_SRC_DIR} site.bro user)
|
||||
rest_target(${POLICY_SRC_DIR} dns.bro policy/dns-index)
|
||||
rest_target(${POLICY_SRC_DIR} dns/auth-addl.bro policy/dns-index)
|
||||
rest_target(${POLICY_SRC_DIR} dns/base.bro policy/dns-index)
|
||||
rest_target(${POLICY_SRC_DIR} dns/consts.bro policy/dns-index)
|
||||
rest_target(${POLICY_SRC_DIR} dns/detect.bro policy/dns-index)
|
||||
rest_target(${POLICY_SRC_DIR} dns/passive-replication.bro policy/dns-index)
|
||||
rest_target(${CMAKE_CURRENT_SOURCE_DIR} example.bro internal)
|
||||
|
||||
# Finding out what scripts bro will generate documentation for by default
|
||||
# can be done like: `bro --doc-scripts --exec ""`
|
||||
|
|
|
@ -11,11 +11,12 @@ Contents:
|
|||
|
||||
common
|
||||
builtins
|
||||
policy/index
|
||||
default
|
||||
bifs
|
||||
user
|
||||
policy/dns-index
|
||||
internal
|
||||
policy/index
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
|
3
doc/scripts/source/policy/dns-index.rst
Normal file
3
doc/scripts/source/policy/dns-index.rst
Normal file
|
@ -0,0 +1,3 @@
|
|||
DNS Policy Scripts
|
||||
==================
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
User-Facing Policy Scripts
|
||||
==========================
|
||||
Other User-Facing Policy Scripts
|
||||
================================
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@load functions
|
||||
@load dns/consts
|
||||
|
||||
module DNS;
|
||||
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
##! Script for detecting strange activity within DNS.
|
||||
##! Detections:
|
||||
##! * Raise a notice for responses from remote hosts that resolve to local
|
||||
##! hosts but the name is not considered to be within a local zone.
|
||||
##! - local_zones variable **must** be set appropriately for this detection.
|
||||
##!
|
||||
##! Notices raised:
|
||||
##!
|
||||
##! * :bro:enum:`DNS::DNS_ExternalName`
|
||||
##!
|
||||
##! A remote host resolves to a local host, but the name is not considered
|
||||
##! to be within a local zone. :bro:id:`local_zones` variable **must**
|
||||
##! be set appropriately for this detection.
|
||||
|
||||
@load dns/base
|
||||
@load notice
|
||||
|
@ -10,9 +14,9 @@
|
|||
module DNS;
|
||||
|
||||
redef enum Notice::Type += {
|
||||
# Raised when a non-local name is found to be pointing at a local host.
|
||||
# This only works appropriately when all of your authoritative DNS
|
||||
# servers are located in your "local_nets".
|
||||
## Raised when a non-local name is found to be pointing at a local host.
|
||||
## This only works appropriately when all of your authoritative DNS
|
||||
## servers are located in your :bro:id:`local_nets`.
|
||||
DNS_ExternalName,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
##! Script for logging passive DNS replication-type data.
|
||||
##! For a definition of what passive DNS repliction is, see here::
|
||||
##! https://sie.isc.org/
|
||||
|
||||
## NOTE: This is a major hack job.
|
||||
## TODO: two queries within the create_expire with different results will
|
||||
## cause only one to be logged.
|
||||
##! For a definition of what passive DNS repliction is, see here:
|
||||
##! https://sie.isc.org/
|
||||
##!
|
||||
##! .. note:: NOTE: This is a major hack job.
|
||||
##!
|
||||
##! TODO: two queries within the create_expire with different results will
|
||||
##! cause only one to be logged.
|
||||
|
||||
@load dns/base
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## A few predefined notice_action_filters (see notice.bro).
|
||||
##! A few predefined notice_action_filters (see notice.bro).
|
||||
@load notice
|
||||
@load functions
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue