Table: onepassword_item_password - Query 1Password Password Items using SQL
1Password is a password manager that provides a place for users to store various passwords, software licenses, and other sensitive information in a virtual vault locked with a PBKDF2-guarded master password. By default, this encrypted vault is stored on the company's servers for a monthly fee. It provides secure, encrypted storage for sensitive information, with the ability to share items and manage permissions through vaults.
Table Usage Guide
The onepassword_item_password
table provides insights into Password Items within 1Password. As a security professional, explore password-specific details through this table, including password content, vault ID, and associated metadata. Utilize it to monitor and manage password security, such as identifying weak passwords, tracking password reuse, and verifying password security policies.
Examples
Basic info
Explore which OnePassword items have a specific tag, allowing you to better manage and categorize your passwords. This is particularly useful for identifying outdated or rarely used passwords that may need updating or removal.
select id, title, password, created_at, tagsfrom onepassword_item_password;
select id, title, password, created_at, tagsfrom onepassword_item_password;
List passwords along with website details
Identify password information linked to specific websites, enabling you to review and manage your digital security effectively.
select id, title, password, jsonb_pretty(u -> 'href') as website, created_at, tagsfrom onepassword_item_password, jsonb_array_elements(urls) as u;
select id, title, password, u.value as website, created_at, tagsfrom onepassword_item_password, json_each(urls) as u;
List passwords of a particular vault
Discover the segments that contain specific vault passwords. This is useful for managing and auditing security credentials within a particular vault.
select p.id, p.title, password, p.created_at, p.tagsfrom onepassword_item_password as p, onepassword_vault as vwhere p.vault_id = v.id and v.name = 'my-creds';
select p.id, p.title, password, p.created_at, p.tagsfrom onepassword_item_password as p, onepassword_vault as vwhere p.vault_id = v.id and v.name = 'my-creds';
Show passwords that contain a specific tag
Explore which passwords are associated with a specific tag. This can be useful for identifying and managing passwords related to a particular project or service.
select id, title, password, created_at, tagsfrom onepassword_item_passwordwhere tags @> '["amazon-use"]';
Error: The corresponding SQLite query is unavailable.
List passwords that are less than 8 characters in length
Identify instances where passwords are less than 8 characters, which can be a potential security risk. This helps in improving security measures by enforcing stronger password policies.
select id, title, password, created_at, tagsfrom onepassword_item_passwordwhere length(password) < 8;
select id, title, password, created_at, tagsfrom onepassword_item_passwordwhere length(password) < 8;
List passwords that are not unique
Explore which passwords are not unique in your system, helping to highlight potential security risks associated with password duplication. This can be useful in identifying and mitigating potential vulnerabilities in your security infrastructure.
select p2.id, p2.vault_id, p2.title, p1.passwordfrom ( select password, count(*) as count from onepassword_item_password group by password having count(*) > 1 ) p1 join onepassword_item_password p2 on p1.password = p2.password;
select p2.id, p2.vault_id, p2.title, p1.passwordfrom ( select password, count(*) as count from onepassword_item_password group by password having count(*) > 1 ) p1 join onepassword_item_password p2 on p1.password = p2.password;
Schema for onepassword_item_password
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
category | text | The category of the item. | |
created_at | timestamp with time zone | Date and time when the item was created. | |
favorite | boolean | Whether the item is marked as a favorite. | |
fields | jsonb | The fileds of the item. | |
files | jsonb | The files of the item. | |
id | text | = | The UUID of the item. |
last_edited_by | text | UUID of the user that last edited the item. | |
password | text | The password stored in the item. | |
sections | jsonb | The sections of the item. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
tags | jsonb | An array of strings of the tags assigned to the item. | |
title | text | The title of the item. | |
trashed | boolean | Checks if the item is trashed. | |
updated_at | timestamp with time zone | Date and time when the item was last changed. | |
urls | jsonb | Array of URL objects containing URLs for the item. | |
vault_id | text | = | The UUID of the vault the item is in. |
version | bigint | The version of the item. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- onepassword
You can pass the configuration to the command with the --config
argument:
steampipe_export_onepassword --config '<your_config>' onepassword_item_password