{"id":18308967,"url":"https://github.com/cfbao/lastpass-vault-parser","last_synced_at":"2025-04-05T17:32:27.847Z","repository":{"id":65071313,"uuid":"132636174","full_name":"cfbao/lastpass-vault-parser","owner":"cfbao","description":"Parse your LastPass vault and export to CSV files","archived":false,"fork":false,"pushed_at":"2024-02-10T02:07:54.000Z","size":45,"stargazers_count":123,"open_issues_count":5,"forks_count":14,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-01T23:12:17.508Z","etag":null,"topics":["lastpass"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfbao.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-08T16:28:28.000Z","updated_at":"2025-03-08T05:04:26.000Z","dependencies_parsed_at":"2023-01-13T15:25:10.122Z","dependency_job_id":null,"html_url":"https://github.com/cfbao/lastpass-vault-parser","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfbao%2Flastpass-vault-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfbao%2Flastpass-vault-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfbao%2Flastpass-vault-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfbao%2Flastpass-vault-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfbao","download_url":"https://codeload.github.com/cfbao/lastpass-vault-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247375141,"owners_count":20928955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lastpass"],"created_at":"2024-11-05T16:09:50.968Z","updated_at":"2025-04-05T17:32:22.812Z","avatar_url":"https://github.com/cfbao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LastPass Vault Parser\n\n***WARNING:  \nOnly use this script on a trusted / secure computer!  \nThis script does NOT follow secure coding practices, and is NOT meant to withstand ANY kind of attacks.  \nDo NOT use this script if you're paranoid.***\n\n---\n\nThis script exports your LastPass vault's content into several CSV files. It exports far more information than [LastPass's built-in export function](https://lastpass.com/support.php?cmd=showfaq\u0026id=1206).\n\nDepending on the availability of relevant data in your vault, the following CSV files will be exported:\n* **Sites_and_SecureNotes.csv**\n* **SitesFormFields.csv** - The complete version. Abridged form fields are already included in _Sites_and_SecureNotes.csv_.\n* **FormFills.csv**\n* **Applications.csv** - Only exist if you've ever used [LastPass for Applications](https://helpdesk.lastpass.com/lastpass-for-applications/).\n* **ApplicationsFields.csv** - Only exist if you've ever used [LastPass for Applications](https://helpdesk.lastpass.com/lastpass-for-applications/).\n* **Attachments.csv** - Meta data only. Actual attachments are not available in the vault file.\n* **EquivalentDomains.csv**\n* **UrlRules.csv**\n\n## Dependencies\n\nTo use the Python script directly:\n* Python 3.6+\n* package *cryptography*  \nrun `pip install cryptography` to install\n\nTo use the Windows binary (download on the [releases](https://github.com/cfbao/lastpass-vault-parser/releases) page)\n* on Windows 7/8/8.1: Windows update [KB2999226](https://support.microsoft.com/en-gb/help/2999226/update-for-universal-c-runtime-in-windows \"Update for Universal C Runtime in Windows\") (should have already be installed on an up-to-date system)\n* on Windows 10: None.\n\n\n## How-to\n\nDownload `lpparser` ([.py](https://raw.githubusercontent.com/cfbao/lastpass-vault-parser/v0.2.1/lpparser.py) or\n[.exe](https://github.com/cfbao/lastpass-vault-parser/releases/download/v0.2.1/lpparser.exe)), and run it directly.\nIt will prompt you to enter the path of your vault file, path of the output directory, LastPass account e-mail, (potentially) password iterations, and master password.\n`lpparser` works 100% locally and makes absolutely no use of Internet connections.\n\nIdeally, the output directory should be a new or empty directory residing on an encrypted drive or a RAM disk. Sensitive data should never be saved on disk unencrypted.\n\nYou may opt to not enter your master password. Then any encrypted data would be exported in the format of  \n`!\u003cinitialization-vector-b64encoded\u003e|\u003cAES-CBC-encrypted-blob-b64encoded\u003e`, or  \n`\u003cAES-ECB-encrypted-blob-b64encoded\u003e`\n\nIt should look something like  \n`!ztYeRZRUvd/nRq9IuNn8ug==|G7ikJAmh/maa+PR3sQg+NL8ixNR0LKr73/xfKU6wV6Q=`, or  \n`F3TQMseR/by+2fMJmgIJjjF+2QLmWXsHLeO4Z3Fd5OY=`\n\n**LastPass does not encrypt everything in your vault.**\nBy not entering your master password, you can see what is unencrypted, and make sure no private data is unintentionally leaked.\n\n\n### What is \"vault file\" and how do I find/get it?\n\n#### Option 1: Chrome extension database (_Recommended_)\nUse the LastPass extension for Chrome, and the extension database file is your vault file.\nSee this [LastPass FAQ](https://lastpass.com/support.php?cmd=showfaq\u0026id=425) on locating your Chrome extension database.\n\n#### Option 2: Browser network log\n1. Open LastPass [login page](https://lastpass.com/?ac=1\u0026lpnorefresh=1) in your browser\n2. Press `F12` to open Developer Tools\n3. Select the \"Network\" tab in Developer Tools\n4. Start recording network log (if not already started)\n5. Log into LastPass through the login page as you normally do\n6. Once logged into LastPass, search for \"getaccts.php\" in the network log, and open this logged event\n7. Select the \"Response\" tab of the logged event, you should see a very long string of random-looking characters.\n8. Copy and save this string in a file, which is your vault file.\n\n#### Option 3: LastPass's built-in encrypted export (NOT recommended)\nUse any binary installation of LastPass (extension with binary component, LastPass Pocket, etc.) to export an encrypted copy of your vault, which is your vault file.\n\nLastPass's built-in encrypted export contains more information than the plaintext CSV export, but still significantly less information than the first two options. The exported vault format is also slightly different, hence there may be minor parsing errors.\n\n### What is my password iterations?\nTypically, you're only asked to manually enter your password iterations when your vault file is obtained via Option 2.\nIn this case, you can check your password iterations by searching for \"iterations.php\" in the same network log.\n\nAlternatively, you can check it via the normal LastPass web interface:  \n`Account Settings -\u003e General -\u003e Show Advanced Settings -\u003e Security -\u003e Password Iterations`\n\nOccasionally, if your vault file is obtained via Option 1, the password iterations included with the vault file may be incorrect.\nYou can override this incorrect value manually by using the command line option `--iterations #`.\n\n## LastPass Vault Format\nAn (incomplete) unofficial description of the LastPass vault format is included in the repository so people can more easily parse their own vault without third party tools. It can be found [here](/lastpass-vault-format.md) or in the [Wiki](https://github.com/cfbao/lastpass-vault-parser/wiki/LastPass-Vault-Format).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfbao%2Flastpass-vault-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfbao%2Flastpass-vault-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfbao%2Flastpass-vault-parser/lists"}