{"id":27763,"library":"g2cv-casm","title":"G2CV CASM","description":"G2CV CASM provides continuous attack surface monitoring capabilities for cloud environments. Current version 0.3.2, released monthly.","status":"active","version":"0.3.2","language":"python","source_language":"en","source_url":"https://github.com/g2cv/casm","tags":["security","attack-surface","monitoring","cloud"],"install":[{"cmd":"pip install g2cv-casm","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"CASM is a submodule within g2cv package; direct import of casm is incorrect.","wrong":"import casm","symbol":"CASM","correct":"from g2cv.casm import CASM"},{"note":"scan is in the casm submodule, not the top-level g2cv.","wrong":"from g2cv import scan","symbol":"scan","correct":"from g2cv.casm import scan"}],"quickstart":{"code":"from g2cv.casm import CASM\nimport os\n\ncasm = CASM(api_key=os.environ.get('CASM_API_KEY', ''))\nresult = casm.scan(target='example.com')\nprint(result)","lang":"python","description":"Initialize CASM client with API key (set CASM_API_KEY env var) and run a scan."},"warnings":[{"fix":"Update calls from casm.scan(domain='...') to casm.scan(target='...')","message":"The 'scan' function signature changed in 0.3.0; now requires 'target' instead of 'domain'.","severity":"breaking","affected_versions":"<0.3.0"},{"fix":"Replace casm.run() with casm.scan()","message":"The 'g2cv.casm.CASM' method 'run' deprecated in 0.3.2, use 'scan' instead.","severity":"deprecated","affected_versions":"0.3.2"},{"fix":"Always ensure CASM_API_KEY env var is set before calling scan().","message":"API key is required but validation is lazy; error surfaces on first scan call, not instantiation.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"pip install g2cv-casm","cause":"Wrong install or missing dependency; g2cv-casm package does not expose 'g2cv' as top-level import.","error":"ModuleNotFoundError: No module named 'g2cv'"},{"fix":"Upgrade: pip install --upgrade g2cv-casm","cause":"Old version (<0.3.0) used different method names; upgrade or use 'run'.","error":"g2cv.casm.CASM has no attribute 'scan'"},{"fix":"Use casm.scan(target='example.com')","cause":"Using old keyword 'domain' instead of 'target'.","error":"TypeError: scan() missing 1 required positional argument: 'target'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}