summarize_system_calls: summarize occurrences of system calls in project

View source: R/system_calls.R

summarize_system_callsR Documentation

summarize occurrences of system calls in project

Description

Summarize and show occurrences of system calls in the R files in a given folder. There could be more occurrences. These calls should be further checked for maliciousness.

Usage

summarize_system_calls(path = ".", calls_to_flag = system_calls())

Arguments

path

character, relative or absolute path for local code directory

calls_to_flag

character vector of functions names to flag as potentially dangerous system calls

Value

data.frame with a row for each system call

Examples

## Not run: 
# git clone git@github.com:ropenscilabs/testevil.git
summarize_system_calls("testevil")
summarize_system_calls("testevil", system_calls("exec_background"))

## End(Not run)

ropenscilabs/defender documentation built on May 11, 2022, 9:10 a.m.