Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
Aaron Meihm 1e63692448 agent: remove persistent module config directory option
The value for this option is the configuration directory, so just use
GetConfDir from the agentcontext package.
2017-09-12 09:56:55 -05:00
Aaron Meihm 5107e3e78a agent: move platform specific config dir into agentcontext 2017-09-12 09:56:55 -05:00
Aaron Meihm 1ea06d610a [minor] include a comment noting we append/modify tags from config 2017-07-06 16:13:57 -05:00
Aaron Meihm 3ef62f8dc9 Merge pull request #345 from rezen/master
[minor] Adding option to set agent tags in external config file
2017-07-06 15:57:00 -05:00
Andres Hermosilla 4cd3867cc9 [minor] Added option to set tags in mig-agent config file, contributes to #237 2017-04-27 10:07:22 -07:00
Aaron Meihm 303eb6f017 [minor/bug] fix issue in configDefault not returning path on linux 2017-04-25 10:39:30 -05:00
Aaron Meihm ef74217a0e [minor] detect correct default config path based on platform type 2017-04-12 12:04:25 -05:00
Aaron Meihm 15d5615154 [minor] make agent action stats limit configurable 2017-03-28 12:19:57 -05:00
jboyer2012 9ad057e229 [minor] Add ONLYVERIFYPUBKEY global to bypass verification of ACLs if set to true. 2017-02-06 18:22:07 -05:00
jboyer2012 67db2cab5d [minor] Add VERIFYACLs global to bypass verification of ACLs if set to false. 2017-02-06 17:49:59 -05:00
Aaron Meihm 3b35161a0f [minor] rename PERSISTCONFIGDIR -> MODULECONFIGDIR 2016-12-16 15:48:57 -06:00
Aaron Meihm bfec483d5c [medium] persistent module config file support
Adds the ability for persistent modules to read a configuration file
that can be used to control their behavior.

In some cases, we may want a persistent module to be configurable. A new
configuration variable PERSISTCONFIGDIR has been added which indicates a
directory the agent will look in for persistent module configs. When the
agent starts a persistent module, it will determine if modulename.cfg
exists in the config directory; if so the agent will load the config and
send it to the newly executed module, which it will read on stdin. The
module can then read this configuration, and configure itself as needed
before it begins it's primary execution functions.

Modules specify the configuration format within the module code itself,
so each module that makes use of this can have it's own configuration
parameters.
2016-12-16 15:42:16 -06:00
Rob Murtha 96c1e3fa22 [minor] improve agent config parsing and errors
closes #281
2016-11-09 10:30:19 -05:00
Aaron Meihm 8ab8d29f7f [minor] runtime options to disable persistent modules 2016-10-14 13:46:58 -05:00
Aaron Meihm b1f1543e67 [minor] agent epm implementation
EPM (extra privacy mode) is an agent option that if enabled, will
inform modules they should apply additional masking on returned results.

For example, by default if the file module matches a search, the name of
the matching file will be returned. With this enabled, it may inform the
investigator that something on the system matched, but will not provide
meta-data.
2016-08-29 14:06:45 -05:00
Aaron Meihm 71ad82d3cf [medium] change agent proxy behavior to prefer proxies
If any proxies have been configured, try those first before attempting
direct connections. This also adds specifying proxies in the agent
config file, where as before they were only compile time options in the
built-in configuration.

Resolves #249
2016-07-05 16:20:11 -05:00
Aaron Meihm a84474ad9e [medium] introduce periodic agent environment refresh
It's possible over the course of the process lifetime on a workstation
that address or other environment information can change. This adds
support for periodic refreshes of current environment information from
the system.

This commit also requires modifying the way we pass the Context around
the agent, from a copy to using a pointer so the changes made in the
refresh routine are visible.

Closes #205
2016-04-18 23:04:50 -05:00
Aaron Meihm f893afd6e0 [medium] Support fetch of instance meta-data for agents running in AWS 2015-12-30 09:36:37 -06:00
Marco Vanotti d23927487c [minor] fix configLoad bug in mig-agent
If an error ocurred during configLoad function, it might not use the
builtin conf, but a half-overwritten one. This change defers the
Config overwrite until all the error-sensitive functions are called.
2015-10-17 15:10:36 -03:00
Julien Vehent f9c24e9828 [minor] change folder structure to go get with nice names 2015-08-26 12:22:02 -04:00