cef 1.0.0 → 2.1.1.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd476b861b26a67ccac0ca120cdb434259fb8d99
4
- data.tar.gz: 416bac4bbf1bc6749155135ab3df0a0dd5db09c5
3
+ metadata.gz: f520020f211fc2d7efb8692d4082c1d596a76801
4
+ data.tar.gz: cf92ebd98858d0337945f24f08983292d3fac01c
5
5
  SHA512:
6
- metadata.gz: 1cd74a78d391ad6a5be928e716062caae969f141aea5f87067877aefbb6165436c55b4dcb5fc8e91d282646737a8775aefbb8db1175041a1ab7d1c3af7be2822
7
- data.tar.gz: bf18931d0e2627a9992f730d47c75cd4e8c96617c4cd85dd75b2360ddba6288742d8c2a646e717ede857c1e77cbdb929a15f8e796166d404083cdf01cbe4a12e
6
+ metadata.gz: 64dedb460f9572939c9281916e1a9730ef9449ab68e40b9babda83d7c467bf7e5a9cc7dae309ed9d0269096659917805d6555437560b4f9d4a18b2b0d7c962d0
7
+ data.tar.gz: 10079daeb4497743b8688490a254f04d8273cc78ee9b579e79fa5e9b575697e352a95674ac5aef92ab2756142d8e979c3f7d0f1df8542a88f8b350b375db97bc
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ **/.DS_Store
1
2
  .env
2
3
  .idea
3
4
  *.gem
@@ -6,15 +7,10 @@
6
7
  .config
7
8
  .yardoc
8
9
  Gemfile.lock
9
- InstalledFiles
10
10
  _yardoc
11
11
  coverage
12
12
  doc/
13
- lib/bundler/man
14
13
  pkg
15
14
  rdoc
16
- spec/reports
17
- test/tmp
18
- test/version_tmp
19
- tmp
20
- cef.iml
15
+ /vendor/bundle/
16
+ /tmp/
data/.rspec CHANGED
@@ -1 +1,2 @@
1
- --color --format documentation --backtrace --warnings -I lib -r ./lib/cef.rb
1
+ --format documentation
2
+ --color
@@ -0,0 +1,55 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: "bundle exec rspec" do
40
+ require "guard/rspec/dsl"
41
+ dsl = Guard::RSpec::Dsl.new(self)
42
+
43
+ # Feel free to open issues for suggestions and improvements
44
+
45
+ # RSpec files
46
+ rspec = dsl.rspec
47
+ watch(rspec.spec_helper) { rspec.spec_dir }
48
+ watch(rspec.spec_support) { rspec.spec_dir }
49
+ watch(rspec.spec_files)
50
+
51
+ # Ruby files
52
+ ruby = dsl.ruby
53
+ dsl.watch_spec_files_for(ruby.lib_files)
54
+
55
+ end
@@ -1,64 +1,3 @@
1
- = cef
2
-
3
- This is an implementation of the Common Event Formatting standard.
4
-
5
- http://www.arcsight.com/solutions/solutions-cef/
6
-
7
-
8
- Included is a library implementing a formatter/emitter and a client program
9
- that can be called from a shell script or some other external source. The
10
- library currently hardcodes the syslog format|priority if you choose to send
11
- vi UDP to a receiver.
12
-
13
- Most of the standard dictionary is implemented.
14
- http://www.arcsight.com/collateral/CEFstandards.pdf
15
-
16
- == Example API Usage
17
-
18
-
19
- # instantiate a sender object
20
- sender=CEF::UDPSender.new(
21
- :receiver=>"loghost.mycompany.com",
22
- :eventDefaults=>{
23
- :deviceProduct => "MySnazzyLogger",
24
- :deviceVendor => "My Company"
25
- }
26
- )
27
- # instantiate an event
28
- event=CEF::Event.new(
29
- :sourceAddress => "192.168.1.1",
30
- :destinationAddress => "192.168.1.2",
31
- :name => "i think something happened"
32
- )
33
-
34
- # fire away!
35
- sender.emit(e)
36
-
37
- == Example client usage
38
-
39
- cef_sender --receiver="myloghost.company.com"\
40
- --deviceProduct="MySnazzyLogger" \
41
- --deviceVendor="My Company" \
42
- --sourceAddress="192.168.1.1" \
43
- --destinationAddress="192.168.1.2" \
44
- --name="i think something happened"
45
-
46
- To see the supported event attributes:
47
-
48
- cef_sender --schema
49
-
50
- == Contributing to cef
51
-
52
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
53
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
54
- * Fork the project
55
- * Start a feature/bugfix branch
56
- * Commit and push until you are happy with your contribution
57
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
58
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
59
-
60
- == Copyright
61
-
62
- Copyright (c) 2011 Ryan Breed. See LICENSE.txt for
63
- further details.
64
-
1
+ #
2
+ #
3
+ #
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.1
1
+ 1.0.0
File without changes
@@ -5,31 +5,33 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'cef/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = "cef"
8
+ spec.name = 'cef'
9
9
  spec.version = CEF::VERSION
10
10
 
11
- spec.authors = ["Ryan Breed"]
12
- spec.date = "2011-03-30"
11
+ spec.authors = ['Ryan Breed']
13
12
  spec.description = %q{ format/send CEF logs via API+syslog or client program }
14
13
  spec.summary = %q{ CEF Generation Library and Client }
15
14
  spec.email = %q{ opensource@breed.org }
16
15
 
17
- spec.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ]
18
- spec.homepage = "http://github.com/ryanbreed/cef"
19
- spec.licenses = ["MIT"]
16
+ spec.extra_rdoc_files = [ 'LICENSE.txt', 'README.rdoc' ]
17
+ spec.homepage = 'http://github.com/ryanbreed/cef'
18
+ spec.licenses = ['MIT']
20
19
 
21
- spec.files = `git ls-files`.split($/)
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
21
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
22
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
- spec.require_paths = ["lib"]
23
+ spec.require_paths = ['lib']
25
24
 
26
- spec.require_paths = ["lib"]
25
+ spec.require_paths = ['lib']
27
26
 
28
- spec.add_development_dependency "rake"
29
- spec.add_development_dependency "rspec"
30
- spec.add_development_dependency "bundler"
31
- spec.add_development_dependency "simplecov"
32
- spec.add_development_dependency "pry"
27
+ spec.add_dependency 'hashie'
33
28
 
29
+ spec.add_development_dependency 'rake'
30
+ spec.add_development_dependency 'rspec'
31
+ spec.add_development_dependency 'bundler'
32
+ spec.add_development_dependency 'simplecov'
33
+ spec.add_development_dependency 'pry'
34
+ spec.add_development_dependency 'guard'
35
+ spec.add_development_dependency 'guard-bundler'
36
+ spec.add_development_dependency 'guard-rspec'
34
37
  end
35
-
@@ -0,0 +1,251 @@
1
+ {
2
+ "prefix" : {
3
+ "name" : "cef event",
4
+ "deviceEventClassId" : "cef:0",
5
+ "deviceProduct" : "Cef::Event",
6
+ "deviceVendor" : "breed.org",
7
+ "deviceSeverity" : 1,
8
+ "deviceVersion" : "2.0.0"
9
+ },
10
+ "types" : {
11
+ "agentReceiptTime" : "Time",
12
+ "baseEventCount" : "Integer",
13
+ "bytesIn" : "Integer",
14
+ "bytesOut" : "Integer",
15
+ "destinationAddress" : "IPAddr",
16
+ "destinationTranslatedAddress" : "IPAddr",
17
+ "destinationPort" : "Integer",
18
+ "destinationTranslatedPort" : "Integer",
19
+ "deviceAddress" : "IPAddr",
20
+ "deviceCustomDate1" : "Time",
21
+ "deviceCustomDate2" : "Time",
22
+ "deviceCustomIPv6Address1" : "IPAddr",
23
+ "deviceCustomIPv6Address2" : "IPAddr",
24
+ "deviceCustomIPv6Address3" : "IPAddr",
25
+ "deviceCustomIPv6Address4" : "IPAddr",
26
+ "deviceCustomNumber1" : "Integer",
27
+ "deviceCustomNumber2" : "Integer",
28
+ "deviceCustomNumber3" : "Integer",
29
+ "deviceSeverity" : "Integer",
30
+ "deviceTranslatedAddress" : "IPAddr",
31
+ "endTime" : "Time",
32
+ "fileCreateTime" : "Time",
33
+ "fileModificationTime" : "Time",
34
+ "fileSize" : "Integer",
35
+ "managerReceiptTime" : "Time",
36
+ "oldFileCreateTime" : "Time",
37
+ "oldFileModificationTime" : "Time",
38
+ "receiptTime" : "Time",
39
+ "startTime" : "Time",
40
+ "sourceAddress" : "IPAddr",
41
+ "sourcePort" : "Integer",
42
+ "sourceTranslatedAddress" : "IPAddr",
43
+ "sourceTranslatedPort" : "Integer"
44
+ },
45
+ "key_names" : {
46
+ "applicationProtocol" : "app",
47
+ "agentAddress" : "agt",
48
+ "agentHostName" : "ahost",
49
+ "agentId" : "aid",
50
+ "agentReceiptTime" : "art",
51
+ "agentType" : "at",
52
+ "agentTimeZone" : "atz",
53
+ "agentVersion" : "av",
54
+ "baseEventCount" : "cnt",
55
+ "bytesIn" : "in",
56
+ "bytesOut" : "out",
57
+ "deviceAction" : "act",
58
+ "deviceEventCategory" : "cat",
59
+ "deviceAddress" : "dvc",
60
+ "deviceHostName" : "dvchost",
61
+ "deviceTimeZone" : "dtz",
62
+ "deviceCustomNumber1" : "cn1",
63
+ "deviceCustomNumber2" : "cn2",
64
+ "deviceCustomNumber3" : "cn3",
65
+ "deviceCustomNumber1Label" : "cn1Label",
66
+ "deviceCustomNumber2Label" : "cn2Label",
67
+ "deviceCustomNumber3Label" : "cn3Label",
68
+ "deviceCustomString1" : "cs1",
69
+ "deviceCustomString2" : "cs2",
70
+ "deviceCustomString3" : "cs3",
71
+ "deviceCustomString4" : "cs4",
72
+ "deviceCustomString5" : "cs5",
73
+ "deviceCustomString6" : "cs6",
74
+ "deviceCustomString1Label" : "cs1Label",
75
+ "deviceCustomString2Label" : "cs2Label",
76
+ "deviceCustomString3Label" : "cs3Label",
77
+ "deviceCustomString4Label" : "cs4Label",
78
+ "deviceCustomString5Label" : "cs5Label",
79
+ "deviceCustomString6Label" : "cs6Label",
80
+ "destinationAddress" : "dst",
81
+ "destinationNtDomain" : "dntdom",
82
+ "destinationHostName" : "dhost",
83
+ "destinationMacAddress" : "dmac",
84
+ "destinationPort" : "dpt",
85
+ "destinationProcessName" : "dproc",
86
+ "destinationUserId" : "duid",
87
+ "destinationUserPrivileges" : "dpriv",
88
+ "destinationUserName" : "duser",
89
+ "eventType" : "type",
90
+ "fileName" : "fname",
91
+ "fileSize" : "fsize",
92
+ "message" : "msg",
93
+ "receiptTime" : "rt",
94
+ "requestURL" : "request",
95
+ "sourceAddress" : "src",
96
+ "sourceHostName" : "shost",
97
+ "sourceMacAddress" : "smac",
98
+ "sourceNtDomain" : "sntdom",
99
+ "sourcePort" : "spt",
100
+ "sourceUserPrivileges" : "spriv",
101
+ "sourceUserId" : "suid",
102
+ "sourceUserName" : "suser",
103
+ "transportProtocol" : "proto"
104
+ },
105
+ "extension" : [
106
+ "agentAddress",
107
+ "agentHostName",
108
+ "agentId",
109
+ "agentName",
110
+ "agentReceiptTime",
111
+ "agentTimeZone",
112
+ "agentType",
113
+ "agentVersion",
114
+ "agentZoneURI",
115
+ "applicationProtocol",
116
+ "baseEventCount",
117
+ "baseEventIds",
118
+ "bytesIn",
119
+ "bytesOut",
120
+ "categoryBehavior",
121
+ "categoryCustomFormatField",
122
+ "categoryDeviceType",
123
+ "categoryDeviceGroup",
124
+ "categoryObject",
125
+ "categoryOutcome",
126
+ "categorySignificance",
127
+ "categoryTechnique",
128
+ "destinationAddress",
129
+ "destinationDnsDomain",
130
+ "destinationHostName",
131
+ "destinationMacAddress",
132
+ "destinationNtDomain",
133
+ "destinationPort",
134
+ "destinationProcessId",
135
+ "destinationProcessName",
136
+ "destinationServiceName",
137
+ "destinationTranslatedAddress",
138
+ "destinationTranslatedPort",
139
+ "destinationUserId",
140
+ "destinationUserName",
141
+ "destinationUserPrivileges",
142
+ "destinationZoneURI",
143
+ "deviceAction",
144
+ "deviceAddress",
145
+ "deviceCustomDate1",
146
+ "deviceCustomDate1Label",
147
+ "deviceCustomDate2",
148
+ "deviceCustomDate2Label",
149
+ "deviceCustomFloatingPoint1",
150
+ "deviceCustomFloatingPoint1Label",
151
+ "deviceCustomFloatingPoint2",
152
+ "deviceCustomFloatingPoint2Labe2",
153
+ "deviceCustomFloatingPoint3",
154
+ "deviceCustomFloatingPoint3Labe3",
155
+ "deviceCustomFloatingPoint4",
156
+ "deviceCustomFloatingPoint4Labe4",
157
+ "deviceCustomIPv6Address1",
158
+ "deviceCustomIPv6Address1Label",
159
+ "deviceCustomIPv6Address2",
160
+ "deviceCustomIPv6Address2Label",
161
+ "deviceCustomIPv6Address3",
162
+ "deviceCustomIPv6Address3Label",
163
+ "deviceCustomIPv6Address4",
164
+ "deviceCustomIPv6Address4Label",
165
+ "deviceCustomNumber1",
166
+ "deviceCustomNumber1Label",
167
+ "deviceCustomNumber2",
168
+ "deviceCustomNumber2Label",
169
+ "deviceCustomNumber3",
170
+ "deviceCustomNumber3Label",
171
+ "deviceCustomString1",
172
+ "deviceCustomString1Label",
173
+ "deviceCustomString2",
174
+ "deviceCustomString2Label",
175
+ "deviceCustomString3",
176
+ "deviceCustomString3Label",
177
+ "deviceCustomString4",
178
+ "deviceCustomString4Label",
179
+ "deviceCustomString5",
180
+ "deviceCustomString5Label",
181
+ "deviceCustomString6",
182
+ "deviceCustomString6Label",
183
+ "deviceDirection",
184
+ "deviceDnsDomain",
185
+ "deviceEventCategory",
186
+ "deviceExternalId",
187
+ "deviceFacility",
188
+ "deviceHostName",
189
+ "deviceInboundInterface",
190
+ "deviceMacAddress",
191
+ "deviceNtDomain",
192
+ "deviceOutboundInterface",
193
+ "devicePayloadId",
194
+ "deviceProcessName",
195
+ "deviceTimeZone",
196
+ "deviceTranslatedAddress",
197
+ "deviceTranslatedZoneURI",
198
+ "deviceZoneURI",
199
+ "endTime",
200
+ "eventId",
201
+ "eventType",
202
+ "externalId",
203
+ "fileCreateTime",
204
+ "fileHash",
205
+ "fileId",
206
+ "fileModificationTime",
207
+ "fileName",
208
+ "filePath",
209
+ "filePermission",
210
+ "fileSize",
211
+ "fileType",
212
+ "generatorID",
213
+ "managerReceiptTime",
214
+ "message",
215
+ "oldFilename",
216
+ "oldFileCreateTime",
217
+ "oldFileHash",
218
+ "oldFileId",
219
+ "oldFileModificationTime",
220
+ "oldFilePath",
221
+ "oldFilePermission",
222
+ "oldFileSize",
223
+ "oldFileType",
224
+ "eventOutcome",
225
+ "reason",
226
+ "receiptTime",
227
+ "request",
228
+ "requestClientApplication",
229
+ "requestCookies",
230
+ "requestMethod",
231
+ "requestURL",
232
+ "sourceAddress",
233
+ "sourceDnsDomain",
234
+ "sourceHostName",
235
+ "sourceMacAddress",
236
+ "sourceNtDomain",
237
+ "sourcePort",
238
+ "sourceProcessId",
239
+ "sourceProcessName",
240
+ "sourceServiceName",
241
+ "sourceTranslatedAddress",
242
+ "sourceTranslatedPort",
243
+ "sourceUserId",
244
+ "sourceUserName",
245
+ "sourceUserPrivileges",
246
+ "sourceZoneURI",
247
+ "startTime",
248
+ "transportProtocol",
249
+ "type"
250
+ ]
251
+ }