CloudyScripts 2.14.60 → 2.14.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  # Base class for any script on EC2.
2
2
  class Ec2Script
3
+
4
+ CS_SEC_GRP_NAME = "CloudyScripts Opened Security Group"
5
+ CS_SEC_GRP_DESC = "Security Group used for CloudyScripts (Opened SSH). PLEASE DO NOT MODIFY !!!"
6
+
3
7
  # Initialization. Common Input parameters:
4
8
  # * aws_access_key => the Amazon AWS Access Key (see Your Account -> Security Credentials)
5
9
  # * aws_secret_key => the Amazon AWS Secret Key
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CloudyScripts
3
3
  version: !ruby/object:Gem::Version
4
- hash: 79
4
+ hash: 75
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 14
9
- - 60
10
- version: 2.14.60
9
+ - 62
10
+ version: 2.14.62
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthias Jung
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-26 00:00:00 +00:00
18
+ date: 2012-09-11 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -73,210 +73,210 @@ files:
73
73
  - LICENSE
74
74
  - README.rdoc
75
75
  - Rakefile
76
- - lib/audit/checks/APACHE2_CONFIG_04.check
76
+ - lib/audit/create_benchmark.sh
77
+ - lib/audit/checks/HAS_TAIL.check
78
+ - lib/audit/checks/SLOW_2.check
79
+ - lib/audit/checks/SSH_CONFIG_02.check
80
+ - lib/audit/checks/HAS_PASSWD_CHECK.check
81
+ - lib/audit/checks/SSH.group
82
+ - lib/audit/checks/SSH_INIT_2.check
83
+ - lib/audit/checks/APACHE2_USER_7.check
84
+ - lib/audit/checks/APACHE2_CONFIG_06.check
85
+ - lib/audit/checks/MAYBE_HAS_SUPERUSER.check
86
+ - lib/audit/checks/HAS_NETSTAT.check
87
+ - lib/audit/checks/USERS_INIT_2.check
88
+ - lib/audit/checks/APACHE2_CONFIG_01.check
89
+ - lib/audit/checks/SSH_CONFIG_11.check
90
+ - lib/audit/checks/FIND_SUDOERS_FILE.check
91
+ - lib/audit/checks/benchmark.group.ssh
92
+ - lib/audit/checks/SSH_KEYS_1.check
93
+ - lib/audit/checks/DMESG_OUTPUT.check
94
+ - lib/audit/checks/PACKAGES_INSTALLED_DPKG.check
95
+ - lib/audit/checks/benchmark.group
96
+ - lib/audit/checks/SLOW_1.check
97
+ - lib/audit/checks/MAYBE_HAS_DU.check
98
+ - lib/audit/checks/MAYBE_HAS_HOSTNAME.check
99
+ - lib/audit/checks/LYNIS_AUTH_9222.check
100
+ - lib/audit/checks/HAS_UNAME.check
101
+ - lib/audit/checks/HAS_ID.check
102
+ - lib/audit/checks/HAS_WC.check
103
+ - lib/audit/checks/SSH_CONFIG_04.check
104
+ - lib/audit/checks/script_header.template
77
105
  - lib/audit/checks/LYNIS_AUTH.group
106
+ - lib/audit/checks/FIND_GROUP_FILE.check
107
+ - lib/audit/checks/HAS_ROUTE.check
78
108
  - lib/audit/checks/LOGGED_USERS.check
109
+ - lib/audit/checks/HAS_GREP.check
110
+ - lib/audit/checks/LYNIS_AUTH_9252.check
79
111
  - lib/audit/checks/HAS_FILE_DOWNLOADER.check
80
- - lib/audit/checks/MYSQL_HISTORY_1.check
81
- - lib/audit/checks/DISTRIBUTION_FACTS.check
82
- - lib/audit/checks/HAS_ID.check
83
- - lib/audit/checks/MAYBE_HAS_TAR.check
84
- - lib/audit/checks/FIND_SHADOW_FILE.check
85
- - lib/audit/checks/HAS_UNAME.check
86
- - lib/audit/checks/HAS_LSB_RELEASE.check
87
- - lib/audit/checks/MYSQL_INIT_3.check
88
- - lib/audit/checks/VARIOUS.group
89
- - lib/audit/checks/BACKUP_LOG.check
90
- - lib/audit/checks/PLATFORM_FACTS.check
91
- - lib/audit/checks/script_header.template
92
- - lib/audit/checks/SSH_CONFIG_03.check
93
- - lib/audit/checks/benchmark.group.ssh
94
- - lib/audit/checks/benchmark.group
112
+ - lib/audit/checks/MYSQL_INIT_1.check
113
+ - lib/audit/checks/LIST_USER_ACCOUNTS.check
114
+ - lib/audit/checks/HAS_YUM.check
115
+ - lib/audit/checks/USERS_INIT_1.check
116
+ - lib/audit/checks/HAS_SORT.check
117
+ - lib/audit/checks/APACHE2_INIT_3.check
118
+ - lib/audit/checks/LIST_ROUTES.check
95
119
  - lib/audit/checks/LYNIS_AUTH_9208.check
96
- - lib/audit/checks/SSH_CONFIG_10.check
97
- - lib/audit/checks/FIND_PASSWD_FILE.check
98
- - lib/audit/checks/LYNIS_AUTH_9204.check
99
- - lib/audit/checks/SSH_CONFIG_09.check
100
- - lib/audit/checks/MYSQL_INIT_2.check
101
- - lib/audit/checks/HAS_GROUPS.check
102
120
  - lib/audit/checks/LOADED_MODULES.check
103
- - lib/audit/checks/HAS_CAT.check
104
- - lib/audit/checks/HAS_SUPERUSER.check
121
+ - lib/audit/checks/HAS_WHO.check
105
122
  - lib/audit/checks/SLOW.group
106
- - lib/audit/checks/SSH_CONFIG_04.check
123
+ - lib/audit/checks/MAYBE_HAS_CURL.check
124
+ - lib/audit/checks/BACKUP_MAIL.check
125
+ - lib/audit/checks/footer.template
126
+ - lib/audit/checks/LASTLOG.check
127
+ - lib/audit/checks/MAYBE_HAS_LSB_RELEASE.check
128
+ - lib/audit/checks/PROCESS_LIST.check
129
+ - lib/audit/checks/PASSWORD_INFORMATION.check
130
+ - lib/audit/checks/MAYBE_HAS_BZIP2.check
131
+ - lib/audit/checks/HAS_CAT.check
132
+ - lib/audit/checks/MAYBE_HAS_WGET.check
107
133
  - lib/audit/checks/benchmark.group.full
108
- - lib/audit/checks/LYNIS_AUTH_9226.check
109
- - lib/audit/checks/APACHE2_CONFIG_01.check
134
+ - lib/audit/checks/SSH_CONFIG_10.check
135
+ - lib/audit/checks/benchmark.ssh.zip
136
+ - lib/audit/checks/VAR_LIST_HOME_DIRECTORIES.check
137
+ - lib/audit/checks/helpers/head.sh
138
+ - lib/audit/checks/HAS_SUPERUSER.check
139
+ - lib/audit/checks/HAS_FIND.check
140
+ - lib/audit/checks/HAS_LSB_RELEASE.check
141
+ - lib/audit/checks/MAYBE_HAS_TAR.check
142
+ - lib/audit/checks/USERS_INIT_4.check
143
+ - lib/audit/checks/FIND_PASSWD_FILE.check
144
+ - lib/audit/checks/SSH_CONFIG_07.check
145
+ - lib/audit/checks/USERS_INIT_3.check
146
+ - lib/audit/checks/PLATFORM_FACTS.check
147
+ - lib/audit/checks/DISTRIBUTION_FACTS.check
110
148
  - lib/audit/checks/MAYBE_HAS_UNAME.check
149
+ - lib/audit/checks/MAYBE_HAS_ID.check
150
+ - lib/audit/checks/APACHE2_CONFIG_05.check
111
151
  - lib/audit/checks/HAS_DF.check
112
- - lib/audit/checks/HAS_UNIQ.check
113
152
  - lib/audit/checks/APACHE2_INIT_1.check
114
- - lib/audit/checks/APACHE2_INIT_2.check
115
- - lib/audit/checks/USERS_INIT_2.check
116
- - lib/audit/checks/PORTS_OPEN_NETSTAT.check
117
- - lib/audit/checks/LIST_ROUTES.check
118
- - lib/audit/checks/SSH_CONFIG_06.check
119
- - lib/audit/checks/SSH_INIT_1.check
120
- - lib/audit/checks/SLOW_1.check
121
- - lib/audit/checks/MAYBE_HAS_LSB_RELEASE.check
122
- - lib/audit/checks/APACHE2_CONFIG_05.check
123
- - lib/audit/checks/HAS_FIND.check
124
- - lib/audit/checks/LASTLOG.check
125
- - lib/audit/checks/HAS_WHO.check
126
- - lib/audit/checks/USERS_INIT_5.check
127
- - lib/audit/checks/HAS_TAIL.check
128
- - lib/audit/checks/header.template
129
- - lib/audit/checks/HAS_NETSTAT.check
130
- - lib/audit/checks/VAR_LIST_HOME_DIRECTORIES.check
131
- - lib/audit/checks/HAS_ROUTE.check
132
- - lib/audit/checks/PASSWORD_INFORMATION.check
133
- - lib/audit/checks/FIND_SUDOERS_FILE.check
134
- - lib/audit/checks/APACHE2_CONFIG_06.check
135
- - lib/audit/checks/USERS_INIT_1.check
136
- - lib/audit/checks/LYNIS_AUTH_9222.check
137
- - lib/audit/checks/BACKUP_MAIL.check
138
- - lib/audit/checks/BACKUP_WEB.check
139
- - lib/audit/checks/HAS_COMPRESSOR.check
153
+ - lib/audit/checks/SSH_CONFIG_09.check
140
154
  - lib/audit/checks/HAS_TAR.check
141
- - lib/audit/checks/benchmark.ssh.zip
155
+ - lib/audit/checks/FIND_SHADOW_FILE.check
156
+ - lib/audit/checks/SSH_CONFIG_05.check
157
+ - lib/audit/checks/BACKUP_LOG.check
158
+ - lib/audit/checks/MYSQL_HISTORY_1.check
159
+ - lib/audit/checks/HAS_AWK.check
160
+ - lib/audit/checks/HAS_TR.check
161
+ - lib/audit/checks/FREE_SPACE.check
162
+ - lib/audit/checks/LYNIS_AUTH_9216.check
163
+ - lib/audit/checks/LOCAL_NMAP.check
142
164
  - lib/audit/checks/HAS_CUT.check
143
- - lib/audit/checks/SLOW_3.check
144
- - lib/audit/checks/APACHE2_INIT_3.check
145
- - lib/audit/checks/SSH_INIT_2.check
146
165
  - lib/audit/checks/SSH_CONFIG_01.check
166
+ - lib/audit/checks/LYNIS_AUTH_9204.check
147
167
  - lib/audit/checks/benchmark.group.apache
148
- - lib/audit/checks/HAS_PASSWD_CHECK.check
168
+ - lib/audit/checks/HAS_UNIQ.check
149
169
  - lib/audit/checks/USER_INFORMATION.check
150
- - lib/audit/checks/SSH_CONFIG_11.check
151
- - lib/audit/checks/HAS_DPKG.check
152
- - lib/audit/checks/HAS_SORT.check
153
- - lib/audit/checks/MAYBE_HAS_WGET.check
170
+ - lib/audit/checks/CONFIGURATION_BACKUP.check
171
+ - lib/audit/checks/HAS_STAT.check
172
+ - lib/audit/checks/HAS_PS.check
173
+ - lib/audit/checks/HAS_HOSTNAME.check
174
+ - lib/audit/checks/HAS_BASE.check
175
+ - lib/audit/checks/HAS_SH.check
154
176
  - lib/audit/checks/APACHE2.group
155
- - lib/audit/checks/APACHE2_USER_7.check
177
+ - lib/audit/checks/HAS_COMPRESSOR.check
178
+ - lib/audit/checks/USERS_INIT_5.check
179
+ - lib/audit/checks/HAS_MOUNT.check
180
+ - lib/audit/checks/VARIOUS.group
181
+ - lib/audit/checks/APACHE2_CONFIG_04.check
182
+ - lib/audit/checks/SSH_CONFIG_03.check
183
+ - lib/audit/checks/HAS_GROUPS.check
156
184
  - lib/audit/checks/SSH_CONFIG_08.check
157
- - lib/audit/checks/SSH_CONFIG_07.check
158
- - lib/audit/checks/SSH_CONFIG_02.check
185
+ - lib/audit/checks/header.template
159
186
  - lib/audit/checks/LYNIS_AUTH_9228.check
160
- - lib/audit/checks/FIND_GROUP_FILE.check
161
- - lib/audit/checks/USERS_INIT_3.check
162
- - lib/audit/checks/HAS_YUM.check
163
- - lib/audit/checks/MAYBE_HAS_ID.check
164
- - lib/audit/checks/SLOW_2.check
165
- - lib/audit/checks/HAS_MOUNT.check
166
- - lib/audit/checks/HAS_AWK.check
167
- - lib/audit/checks/MOUNTED_DEVICES.check
168
- - lib/audit/checks/MAYBE_HAS_HOSTNAME.check
169
- - lib/audit/checks/SSH_CONFIG_05.check
170
- - lib/audit/checks/HAS_BASE.check
171
- - lib/audit/checks/HAS_GREP.check
172
- - lib/audit/checks/SSH_KEYS_1.check
173
- - lib/audit/checks/MAYBE_HAS_DU.check
187
+ - lib/audit/checks/SSH_CONFIG_06.check
188
+ - lib/audit/checks/LYNIS_AUTH_9226.check
189
+ - lib/audit/checks/MYSQL_INIT_3.check
190
+ - lib/audit/checks/BACKUP_WEB.check
174
191
  - lib/audit/checks/PACKAGES_INSTALLED_YUM.check
175
- - lib/audit/checks/HAS_STAT.check
176
- - lib/audit/checks/HAS_TR.check
177
- - lib/audit/checks/HAS_PS.check
178
- - lib/audit/checks/LYNIS_AUTH_9252.check
179
- - lib/audit/checks/CONFIGURATION_BACKUP.check
180
- - lib/audit/checks/HAS_SH.check
192
+ - lib/audit/checks/HAS_DPKG.check
193
+ - lib/audit/checks/DIRECTORY_LISTING.check
181
194
  - lib/audit/checks/HAS_GROUPCHECK.check
182
- - lib/audit/checks/LOCAL_NMAP.check
195
+ - lib/audit/checks/SLOW_3.check
196
+ - lib/audit/checks/BACKUP_HOME_DOTFILES.check
197
+ - lib/audit/checks/MOUNTED_DEVICES.check
198
+ - lib/audit/checks/PORTS_OPEN_NETSTAT.check
183
199
  - lib/audit/checks/APACHE2_CONFIG_02.check
184
- - lib/audit/checks/footer.template
185
- - lib/audit/checks/DIRECTORY_LISTING.check
186
- - lib/audit/checks/FREE_SPACE.check
187
- - lib/audit/checks/LIST_USER_ACCOUNTS.check
188
200
  - lib/audit/checks/APACHE2_CONFIG_03.check
189
- - lib/audit/checks/MAYBE_HAS_SUPERUSER.check
190
- - lib/audit/checks/MAYBE_HAS_CURL.check
191
- - lib/audit/checks/DMESG_OUTPUT.check
192
- - lib/audit/checks/HAS_WC.check
193
- - lib/audit/checks/MYSQL_INIT_1.check
194
- - lib/audit/checks/PROCESS_LIST.check
195
- - lib/audit/checks/helpers/head.sh
196
- - lib/audit/checks/USERS_INIT_4.check
197
- - lib/audit/checks/BACKUP_HOME_DOTFILES.check
198
- - lib/audit/checks/PACKAGES_INSTALLED_DPKG.check
199
- - lib/audit/checks/HAS_HOSTNAME.check
200
- - lib/audit/checks/MAYBE_HAS_BZIP2.check
201
- - lib/audit/checks/SSH.group
202
- - lib/audit/checks/LYNIS_AUTH_9216.check
201
+ - lib/audit/checks/MYSQL_INIT_2.check
202
+ - lib/audit/checks/APACHE2_INIT_2.check
203
+ - lib/audit/checks/SSH_INIT_1.check
203
204
  - lib/audit/benchmark_apache.zip
204
- - lib/audit/lib/ssh_utils.rb
205
- - lib/audit/lib/http_fingerprint.rb
206
- - lib/audit/lib/ssh_fingerprint2.rb
205
+ - lib/audit/benchmark_full.zip
207
206
  - lib/audit/lib/nessus_utils.rb
207
+ - lib/audit/lib/transformers/yaml_transformer.rb
208
+ - lib/audit/lib/transformers/web_view_transformer.rb
209
+ - lib/audit/lib/ssh_utils.rb
210
+ - lib/audit/lib/audit.rb
211
+ - lib/audit/lib/lazy.rb
212
+ - lib/audit/lib/connection/ssh_connection.rb
213
+ - lib/audit/lib/connection/ami_connection.rb
214
+ - lib/audit/lib/connection/connection_factory.rb
215
+ - lib/audit/lib/ssh_fingerprint.rb
216
+ - lib/audit/lib/nessus_new.rb
208
217
  - lib/audit/lib/my_option_parser.rb
209
- - lib/audit/lib/util/random_string.rb
210
218
  - lib/audit/lib/main.rb
211
- - lib/audit/lib/audit_facade.rb
212
- - lib/audit/lib/benchmark/check.rb
219
+ - lib/audit/lib/linear_script_generator.rb
220
+ - lib/audit/lib/version.rb
221
+ - lib/audit/lib/benchmark/group.rb
213
222
  - lib/audit/lib/benchmark/rule_result.rb
214
- - lib/audit/lib/benchmark/rule_severity.rb
215
223
  - lib/audit/lib/benchmark/item_exception.rb
216
224
  - lib/audit/lib/benchmark/result_code.rb
225
+ - lib/audit/lib/benchmark/automatic_dependencies.rb
226
+ - lib/audit/lib/benchmark/check.rb
217
227
  - lib/audit/lib/benchmark/audit_benchmark.rb
218
- - lib/audit/lib/benchmark/yaml_benchmark.rb
219
228
  - lib/audit/lib/benchmark/benchmark_factory.rb
229
+ - lib/audit/lib/benchmark/yaml_benchmark.rb
230
+ - lib/audit/lib/benchmark/rule_severity.rb
220
231
  - lib/audit/lib/benchmark/benchmark_result.rb
221
- - lib/audit/lib/benchmark/automatic_dependencies.rb
222
- - lib/audit/lib/benchmark/group.rb
223
232
  - lib/audit/lib/benchmark/rule_role.rb
224
- - lib/audit/lib/transformers/web_view_transformer.rb
225
- - lib/audit/lib/transformers/yaml_transformer.rb
226
- - lib/audit/lib/audit.rb
227
- - lib/audit/lib/nessus_new.rb
228
- - lib/audit/lib/linear_script_generator.rb
229
- - lib/audit/lib/parser/result_type.rb
230
- - lib/audit/lib/parser/parse_exception.rb
233
+ - lib/audit/lib/util/random_string.rb
234
+ - lib/audit/lib/http_fingerprint.rb
235
+ - lib/audit/lib/audit_facade.rb
236
+ - lib/audit/lib/ec2_utils.rb
237
+ - lib/audit/lib/ssh_fingerprint2.rb
231
238
  - lib/audit/lib/parser/stdout_line_buffer.rb
232
- - lib/audit/lib/parser/script_output_parser.rb
233
- - lib/audit/lib/parser/command/listening_port_command.rb
239
+ - lib/audit/lib/parser/result_type.rb
234
240
  - lib/audit/lib/parser/command/check_finished_command.rb
235
- - lib/audit/lib/parser/command/message_command.rb
236
- - lib/audit/lib/parser/command/data_command.rb
237
- - lib/audit/lib/parser/command/cpe_name_command.rb
238
- - lib/audit/lib/parser/command/attach_file_command.rb
239
241
  - lib/audit/lib/parser/command/abstract_command_result.rb
240
242
  - lib/audit/lib/parser/command/program_name_command.rb
243
+ - lib/audit/lib/parser/command/listening_port_command.rb
244
+ - lib/audit/lib/parser/command/message_command.rb
245
+ - lib/audit/lib/parser/command/cpe_name_command.rb
246
+ - lib/audit/lib/parser/command/data_command.rb
241
247
  - lib/audit/lib/parser/command/abstract_command.rb
242
- - lib/audit/lib/ssh_fingerprint.rb
243
- - lib/audit/lib/ec2_utils.rb
244
- - lib/audit/lib/lazy.rb
245
- - lib/audit/lib/connection/ami_connection.rb
246
- - lib/audit/lib/connection/ssh_connection.rb
247
- - lib/audit/lib/connection/connection_factory.rb
248
- - lib/audit/lib/version.rb
249
- - lib/audit/create_benchmark.sh
250
- - lib/audit/benchmark_full.zip
248
+ - lib/audit/lib/parser/command/attach_file_command.rb
249
+ - lib/audit/lib/parser/script_output_parser.rb
250
+ - lib/audit/lib/parser/parse_exception.rb
251
251
  - lib/audit/benchmark_ssh.zip
252
- - lib/scripts/vCloud/v_cloud_script.rb
253
- - lib/scripts/vCloud/open_port_checker_vm.rb
254
- - lib/scripts/ec2/copy_mswindows_snapshot.rb
255
252
  - lib/scripts/ec2/port_range_detector.rb
256
- - lib/scripts/ec2/dm_encrypt.rb
253
+ - lib/scripts/ec2/ec2_script.rb
257
254
  - lib/scripts/ec2/vpc_critical_ports_audit.rb
258
- - lib/scripts/ec2/ami2_ebs_conversion.rb
255
+ - lib/scripts/ec2/copy_snapshot.rb
259
256
  - lib/scripts/ec2/copy_mswindows_ami.rb
260
- - lib/scripts/ec2/check_cloudyscripts.rb
261
- - lib/scripts/ec2/audit_via_ssh.rb
262
- - lib/scripts/ec2/open_port_checker.rb
263
- - lib/scripts/ec2/copy_ami.rb
257
+ - lib/scripts/ec2/copy_mswindows_snapshot.rb
264
258
  - lib/scripts/ec2/critical_ports_audit.rb
259
+ - lib/scripts/ec2/dm_encrypt.rb
260
+ - lib/scripts/ec2/ami2_ebs_conversion.rb
261
+ - lib/scripts/ec2/copy_ami.rb
262
+ - lib/scripts/ec2/open_port_checker.rb
265
263
  - lib/scripts/ec2/snapshot_optimization.rb
266
- - lib/scripts/ec2/copy_snapshot.rb
267
- - lib/scripts/ec2/ec2_script.rb
264
+ - lib/scripts/ec2/audit_via_ssh.rb
268
265
  - lib/scripts/ec2/download_snapshot.rb
269
- - lib/help/ec2_helper.rb
270
- - lib/help/dm_crypt_helper.rb
266
+ - lib/scripts/ec2/check_cloudyscripts.rb
267
+ - lib/scripts/vCloud/v_cloud_script.rb
268
+ - lib/scripts/vCloud/open_port_checker_vm.rb
269
+ - lib/cloudyscripts.rb
271
270
  - lib/help/state_transition_helper.rb
272
271
  - lib/help/script_execution_state.rb
273
- - lib/help/progress_message_listener.rb
272
+ - lib/help/ec2_helper.rb
273
+ - lib/help/dm_crypt_helper.rb
274
274
  - lib/help/v_cloud_transition_helper.rb
275
+ - lib/help/state_change_listener.rb
275
276
  - lib/help/v_cloud_api_handler.rb
277
+ - lib/help/progress_message_listener.rb
276
278
  - lib/help/remote_command_handler.rb
277
279
  - lib/help/helper.rb
278
- - lib/help/state_change_listener.rb
279
- - lib/cloudyscripts.rb
280
280
  has_rdoc: true
281
281
  homepage: http://elastic-security.com
282
282
  licenses: []