| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package STIX::Observable::Type::AlternateDataStream; |
|
2
|
|
|
|
|
|
|
|
|
3
|
24
|
|
|
24
|
|
549
|
use 5.010001; |
|
|
24
|
|
|
|
|
107
|
|
|
4
|
24
|
|
|
24
|
|
154
|
use strict; |
|
|
24
|
|
|
|
|
53
|
|
|
|
24
|
|
|
|
|
920
|
|
|
5
|
24
|
|
|
24
|
|
134
|
use warnings; |
|
|
24
|
|
|
|
|
51
|
|
|
|
24
|
|
|
|
|
1607
|
|
|
6
|
24
|
|
|
24
|
|
244
|
use utf8; |
|
|
24
|
|
|
|
|
58
|
|
|
|
24
|
|
|
|
|
305
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
24
|
|
|
24
|
|
1200
|
use Moo; |
|
|
24
|
|
|
|
|
56
|
|
|
|
24
|
|
|
|
|
189
|
|
|
9
|
24
|
|
|
24
|
|
12005
|
use Types::Standard qw(Str Int InstanceOf); |
|
|
24
|
|
|
|
|
75
|
|
|
|
24
|
|
|
|
|
294
|
|
|
10
|
24
|
|
|
24
|
|
57827
|
use namespace::autoclean; |
|
|
24
|
|
|
|
|
68
|
|
|
|
24
|
|
|
|
|
281
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
extends 'STIX::Object'; |
|
13
|
|
|
|
|
|
|
|
|
14
|
24
|
|
|
|
|
5103
|
use constant PROPERTIES => (qw( |
|
15
|
|
|
|
|
|
|
name hashes size |
|
16
|
24
|
|
|
24
|
|
3098
|
)); |
|
|
24
|
|
|
|
|
62
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has name => (is => 'rw', isa => Str, required => 1); |
|
19
|
|
|
|
|
|
|
has hashes => (is => 'rw', isa => InstanceOf ['STIX::Common::Hashes']); |
|
20
|
|
|
|
|
|
|
has size => (is => 'rw', isa => Int); |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=encoding utf-8 |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
STIX::Observable::Type::AlternateDataStream - STIX Cyber-observable Object (SCO) - Alternate Data Streams Extension |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
use STIX::Observable::Type::AlternateDataStream; |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $alternate_data_stream_ext = STIX::Observable::Type::AlternateDataStream->new(); |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Specifies a list of NTFS alternate data streams that exist for the file. |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 METHODS |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
L inherits all methods from L |
|
45
|
|
|
|
|
|
|
and implements the following new ones. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=over |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item STIX::Observable::Type::AlternateDataStream->new(%properties) |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Create a new instance of L. |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->name |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Specifies the name of the alternate data stream. |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->hashes |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Specifies a dictionary of hashes for the data contained in the alternate data stream. |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->size |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Specifies the size of the alternate data stream, in bytes, as a non-negative integer. |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=back |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 HELPERS |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=over |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->TO_JSON |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Helper for JSON encoders. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->to_hash |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Return the object HASH. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->to_string |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Encode the object in JSON. |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item $alternate_data_stream_ext->validate |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Validate the object using JSON Schema (see L). |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=back |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 SUPPORT |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 Bugs / Feature Requests |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Please report any bugs or feature requests through the issue tracker |
|
96
|
|
|
|
|
|
|
at L. |
|
97
|
|
|
|
|
|
|
You will be notified automatically of any progress on your issue. |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 Source Code |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This is open source software. The code repository is available for |
|
102
|
|
|
|
|
|
|
public review and contribution under the terms of the license. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
L |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
git clone https://github.com/giterlizzi/perl-STIX.git |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 AUTHOR |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=over 4 |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=item * Giuseppe Di Terlizzi |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=back |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This software is copyright (c) 2024 by Giuseppe Di Terlizzi. |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
123
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=cut |