'Return a set of knowledgebase path dependencies.
Returns:
A set of strings for the required kb objects e.g.
["users.appdata", "systemroot"]'

def GetArtifactPathDependencies(self):

    deps = set()
    for source in self.sources:
        for (arg, value) in source.attributes.items():
            paths = []
            if (arg in ['path', 'query']):
                paths.append(value)
            if (arg == 'key_value_pairs'):
                paths.extend([x['key'] for x in value])
            if (arg in ['keys', 'paths', 'path_list', 'content_regex_list']):
                paths.extend(value)
            for path in paths:
                for match in artifact_utils.INTERPOLATED_REGEX.finditer(path):
                    deps.add(match.group()[2:(-2)])
    deps.update(self.GetArtifactParserDependencies())
    return deps
