diff --git a/capa/main.py b/capa/main.py index 75979c09b..d4f1dcdac 100644 --- a/capa/main.py +++ b/capa/main.py @@ -1038,6 +1038,13 @@ def handle_common_args(args): logger.debug("-" * 80) sigs_path = os.path.join(get_default_root(), "sigs") + if not os.path.exists(sigs_path): + logger.error( + "Using default signature path, but it doesn't exist. " + "Please install the signatures first: " + "https://github.com/mandiant/capa/blob/master/doc/installation.md#method-2-using-capa-as-a-python-library." + ) + raise IOError(f"signatures path {sigs_path} does not exist or cannot be accessed") else: sigs_path = args.signatures logger.debug("using signatures path: %s", sigs_path)