XML::Malware - Perl extension for representing malware samples in XML
use XML::Malware; my $h; $h->{'company'} = 'wes co'; $h->{'author'} = 'wes'; $h->{'comment'} = 'test'; $h->{'timestamp'} = '2009-02-23T17:34:56'; $h->{'id'} = ''; push(@{$h->{'objects'}->{'file'}}, { id => '', md5 => "aa31da6402d850ce94e7c19bc97effe1" }); push(@{$h->{'objects'}->{'classification'}}, { id => '', companyName => 'some company', type => 'dirty', classificationName => 'className'}); my $m = XML::Malware->new($h); warn $m->out();
This module works with ICSG schema v1.1
XML::IODEF, XML::IDMEF
http://code.google.com/p/perl-xml-malware/
http://standards.ieee.org/prod-serv/indconn/icsg/index.html
http://grouper.ieee.org/groups/malware/malwg/Schema1.1/
Wes Young, <wes@barely3am.com<gt>
Copyright (C) 2010 by Wes Young
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install XML::Malware, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Malware
CPAN shell
perl -MCPAN -e shell install XML::Malware
For more information on module installation, please visit the detailed CPAN module installation guide.