Branch Coverage

blib/lib/Metabrik/Forensic/Sysmon.pm
Criterion Covered Total %
branch 0 140 0.0


line true false branch
112 0 0 unless $self->brik_help_run_undef_arg("get_event_id", $event_id)
136 0 0 if (defined $user)
139 0 0 if (defined $name)
142 0 0 if (defined $session)
325 0 0 if (/^.+=.+$/)
327 0 0 if (defined $k and defined $v)
339 0 0 unless my $r = $self->get_process_create
380 0 0 if (ref $ary eq "ARRAY")
408 0 0 unless my $r = $self->get_file_created
422 0 0 unless my $r = $self->get_process_create
438 0 0 unless my $r = $self->get_image_loaded
454 0 0 unless my $r = $self->get_driver_loaded
470 0 0 unless my $r = $self->get_process_create
486 0 0 unless my $r = $self->get_file_created
502 0 0 unless my $r = $self->get_file_creation_time_changed
518 0 0 unless my $r = $self->get_create_remote_thread
534 0 0 unless my $r = $self->get_network_connection_detected
559 0 0 unless my $r = $self->get_registry_object_added_or_deleted
575 0 0 unless my $r = $self->get_registry_value_set
591 0 0 unless my $r = $self->get_process_accessed
607 0 0 unless my $r = $self->unique_values("event_data.User")
610 0 0 if (exists $r->{'aggregations'} and exists $r->{'aggregations'}{'1'} and exists $r->{'aggregations'}{'1'}{'buckets'})
625 0 0 unless my $r = $self->unique_values("event_data.LogonGuid")
628 0 0 if (exists $r->{'aggregations'} and exists $r->{'aggregations'}{'1'} and exists $r->{'aggregations'}{'1'}{'buckets'})
643 0 0 unless my $r = $self->unique_values("computer_name")
646 0 0 if (exists $r->{'aggregations'} and exists $r->{'aggregations'}{'1'} and exists $r->{'aggregations'}{'1'}{'buckets'})
661 0 0 unless my $r = $self->unique_values("user.domain")
664 0 0 if (exists $r->{'aggregations'} and exists $r->{'aggregations'}{'1'} and exists $r->{'aggregations'}{'1'}{'buckets'})
680 0 0 unless $self->brik_help_run_undef_arg("build_list", $data)
681 0 0 unless $self->brik_help_run_invalid_arg("build_list", $data, "ARRAY")
688 0 0 if (ref $this->{$k} eq 'ARRAY') { }
0 0 elsif (ref $this->{$k} eq 'HASH') { }
0 0 elsif (ref $this->{$k} eq '') { }
701 0 0 if (keys %a_keys > 1)
711 0 0 if (keys %a_keys > 0) { }
733 0 0 unless $self->brik_help_run_undef_arg("write_list", $data)
734 0 0 unless $self->brik_help_run_invalid_arg("write_list", $data, "ARRAY")
735 0 0 unless $self->brik_help_run_undef_arg("write_list", $output)
737 0 0 unless my $fc = "Metabrik::File::Csv"->new_from_brik_init($self)
760 0 0 unless $fc->write($data, $output)
769 0 0 unless $self->brik_help_run_undef_arg("read_list", $input)
770 0 0 unless $self->brik_help_run_file_not_found("read_list", $input)
772 0 0 unless my $fc = "Metabrik::File::Csv"->new_from_brik_init($self)
782 0 0 unless $self->brik_help_run_undef_arg("clean_ps_from_list", $data)
783 0 0 unless $self->brik_help_run_invalid_arg("clean_ps_from_list", $data, "ARRAY")
784 0 0 unless $self->brik_help_run_undef_arg("clean_ps_from_list", $input)
785 0 0 unless $self->brik_help_run_file_not_found("clean_ps_from_list", $input)
787 0 0 if (defined $sources)
788 0 0 unless $self->brik_help_run_invalid_arg("clean_ps_from_list", $sources, "ARRAY")
792 0 0 unless my $csv_list = $self->read_list($input)
793 0 0 unless my $data_list = $self->build_list($data)
796 0 0 unless (defined $first)
809 0 0 if (defined $sources)
812 0 0 if ($ps->{'source'} eq $_)
817 0 0 if $skip
825 0 0 if ($self->use_regex_match) { }
826 0 0 if ($v =~ /^$wl$/)
840 0 0 if ($v eq $wl)
845 0 0 if ($this_count == $count)
851 0 0 unless ($whitelisted)
878 0 0 if (defined $type)
886 0 0 unless (defined $ps)
892 0 0 unless (defined $list)
898 0 0 unless (defined $r)
911 0 0 if (defined $sources)
912 0 0 unless $self->brik_help_run_invalid_arg("diff_current_state", $sources, "ARRAY")
931 0 0 if (defined $type)
937 0 0 unless ($self->can($this))
942 0 0 unless (defined $ps)
950 0 0 unless (defined $ps)