Menu
The Chia Plot
  • Blog
  • How-To
  • About
  • Contact
  • Security
  • Discord
The Chia Plot
Encryption for Cryptocurrency

The trouble with private keys

Posted on October 8, 2021October 8, 2021 by Chris Dupres

**Update** This article contains an improper critique of FlexFarmer. A more substantiative update will be done on FlexFarmer key hygiene, which is actually quite good compared to the rest of the ecosystem.

**Update 2** FlexPool is back on the menu, according to Gene the farmer private key IS the risk I considered this morning. Expect a post on how Chia keys work.

There has been a lot of discussion about private keys and key hygiene as it relates to Arbor Wallet in the last few days, and I am going to write a short post here addressing that. I think there is a huge focus on a singular area of security and private key hygiene while ignoring most of the actual problem in the Chia ecosystem.

First off, I don’t like that Arbor is sending keys off-device. It is poor security practice and makes it a lot easier for them to leak. But do you know what else is poor security practice? Storing them on disk, and allowing a shell command to spit them out without authentication like Chia’s software does. Putting them into a config file that you generated by putting your 12 words into your browser, like FlexPool does. This is all bad key hygiene, just as putting it across a wire is. In fact, according to OWASP and industry standard key management best practices, as long as the channel that Arbor is transmitting the key is FIPS-102 secure its actually OKish, whereas storing keys in plain text without permissions is never OK. That is why this debate is infuriating to me, because it focuses on one thing that feels like the worst idea, but it really isn’t. In fact the worst thing about the Arbor Wallet key transmission is that it might end up stored somewhere insecure, like a load balancers logs. Meanwhile, that improper key storage is done by design in a lot of the ecosystem, as discussed below.

There are a lot of security issues with the Chia ecosystem, some more severe than others. People claim to have lost coins not by using Arbor Wallet, but from the official client. Which makes sense! Its really easy to steal someone’s private keys with Chia, you don’t even need admin access to their machine. Any user with file system access can run “chia keys show –show-mnemonic-seed” and spit your keys out in plain text, or just copy them from the .chia/mainnet folder.

And worse is the FlexFarmer mechanism of generating your private key in the browser. Any browser extension you have running can read that data, transmit it off device or store it. And their config.yaml file for FlexFarmer keeps the private key in plain text on your machine just sitting there in a known location. This is all very bad security practice, but I don’t hear people calling for Chia or FlexPool to be banished from the internet for it.

I am not defending Arbor, I think they need to fix this issue. I suspect there are other architectural issues they also will need to address. But its young software, it doesn’t need to be perfect – it needs to improve. For now I would consider any keys used by their system to be compromised, but I would also think long and hard about your other Chia keys and how safe they have been this whole time. The whole cryptocurrency ecosystem is rife with security issues, and not all of them are easy to spot as “privatekey: $privatekey” in a JSON POST. I cannot wait until we see Nucle under the hood, as my understanding is they are doing a full on security review that should catch issues like this.

Edit: FlexPool has made an excellent point about FlexFarmer that it only stores the farmer private key, for plots, and not the wallet private keys. In fact since it doesn’t require a wallet at all it only exposes the plot keys period.

Related

5 thoughts on “The trouble with private keys”

  1. JAJ3_Z says:
    October 8, 2021 at 7:29 am

    “In fact, according to OWASP and industry standard key management best practices, as long as the channel that Arbor is transmitting the key is FIPS-102 secure its actually OKish”

    I don’t think that’s what they (OWASP) mean. They probably refer to symmetric key distribution like it happens in a SSL-Handshake and does not include asymmetric encryption.

    They also say: “The public key may be known by anyone; the private key should be under the sole control of the entity that “owns” the key pair.”

    Reply
    1. Chris Dupres says:
      October 8, 2021 at 7:37 am

      Thats correct. Its not good. But there are lots of situations where private keys are transported. They should never be transported or stored in plain text.

      Also, symmetric key distribution doesn’t have a private key, only asymmetric does.

      Again, this wasn’t a defense to Arbor but a call to think about key hygiene in its totality, in which the cardinal rule is DO NOT STORE IN PLAIN TEXT.

      Reply
  2. ChiaFan says:
    October 8, 2021 at 10:07 am

    I am pretty sure the private key is just the tip of the Ice burg for “Arbor Wallet”. The hackathon promoted speed development over secure development. Anything that handles your coin/money/currencies is a HUGE target for attackers.

    Along with the lead developer (aka the CTO) is just a teenager that from what I gather, has never worked on a production level application. I am not saying he is not a good developer because he is very smart, but you just may be native to what is good & bad practices.

    Reply
    1. JAJ3_Z says:
      October 8, 2021 at 1:48 pm

      Yes they are young but it’s not okay to criticize people for who they are.

      Reply
  3. Anonymous says:
    October 8, 2021 at 6:19 pm

    Keep up with the flexpool criticism, it’s great to show how shady they are

    Reply

Leave a Reply Cancel reply

Advertisement

Recent Posts

  • Crypto is burning down – Chia seems fine
  • Chia CAT upgrade fiasco part 2 – Was I wrong?
  • WTF just happened?? CAT1 to CAT2 “upgrade”
  • The era of the Chia NFT is upon us
  • Chia Blockchain 1.4.0 released – NFTs and DIDs oh my
  • Discussion
  • Facts About Farmers
  • How-To
  • Information
  • News
  • pools
  • Security
  • Trademark
  • Trading
  • Uncategorized

Dark Mode Switch

©2021 The Chia Plot - Donate XCH / MRMT / SBX @ xch1p4440d6zwu9ryta2vx073lq2ge3s29d37kskz6t34jp085e8srjqnk0gcr
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
JSESSIONIDsessionUsed by sites written in JSP. General purpose platform session cookies that are used to maintain users' state across page requests.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
CookieDurationDescription
na_id1 year 1 monthThis cookie is set by Addthis.com to enable sharing of links on social media platforms like Facebook and Twitter
na_rn1 monthThis cookie is used to recognize the visitor upon re-entry. This cookie allows to collect information on user behaviour and allows sharing function provided by Addthis.com
na_sc_e1 monthThis cookie is used to recognize the visitor upon re-entry. This cookie allows to collect information on user behaviour and allows sharing function provided by Addthis.com
na_sr1 monthThis cookie is set by Addthis.com. This cookie is used for sharing of links on social media platforms.
na_srp1 minuteThis cookie is used to recognize the visitor upon re-entry. This cookie allows to collect information on user behaviour and allows sharing function provided by Addthis.com
na_tc1 year 1 monthThis cookie is set by the provider Addthis. This cookie is used for social media sharing tracking service.
ouid1 year 1 monthThe cookie is set by Addthis which enables the content of the website to be shared across different networking and social sharing websites.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
CookieDurationDescription
d3 monthsThis cookie tracks anonymous information on how visitors use the website.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
__gads1 year 24 daysThis cookie is set by Google and stored under the name dounleclick.com. This cookie is used to track how many times users see a particular advert which helps in measuring the success of the campaign and calculate the revenue generated by the campaign. These cookies can only be read from the domain that it is set on so it will not track any data while browsing through another sites.
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_199099757_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
CONSENT16 years 4 months 5 daysThese cookies are set via embedded youtube-videos. They register anonymous statistical data on for example how many times the video is displayed and what settings are used for playback.No sensitive data is collected unless you log in to your google account, in that case your choices are linked with your account, for example if you click “like” on a video.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
advanced_ads_browser_width1 monthThis cookie is set by Advanced ads plugin.This cookie is used to measure and store the user browser width for adverts.
anj3 monthsNo description available.
CMID1 yearThe cookie is set by CasaleMedia. The cookie is used to collect information about the usage behavior for targeted advertising.
CMPRO3 monthsThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
CMPS3 monthsThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
CMRUM31 yearThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
CMST1 dayThe cookie is set by CasaleMedia. The cookie is used to collect information about the usage behavior for targeted advertising.
DSID1 hourThis cookie is setup by doubleclick.net. This cookie is used by Google to make advertising more engaging to users and are stored under doubleclick.net. It contains an encrypted unique ID.
i1 yearThe purpose of the cookie is not known yet.
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
KADUSERCOOKIE3 monthsThe cookie is set by pubmatic.com for identifying the visitors' website or device from which they visit PubMatic's partners' website.
KTPCACOOKIE1 dayThis cookie is set by pubmatic.com for the purpose of checking if third-party cookies are enabled on the user's website.
mc1 year 1 monthThis cookie is associated with Quantserve to track anonymously how a user interact with the website.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
uid1 year 1 monthThis cookie is used to measure the number and behavior of the visitors to the website anonymously. The data includes the number of visits, average duration of the visit on the website, pages visited, etc. for the purpose of better understanding user preferences for targeted advertisments.
uuid3 monthsTo optimize ad relevance by collecting visitor data from multiple websites such as what pages have been loaded.
uuid23 monthsThis cookies is set by AppNexus. The cookies stores information that helps in distinguishing between devices and browsers. This information us used to select advertisements served by the platform and assess the performance of the advertisement and attribute payment for those advertisements.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
yt-remote-connected-devicesneverThese cookies are set via embedded youtube-videos.
yt-remote-device-idneverThese cookies are set via embedded youtube-videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
__gpi1 year 24 daysNo description
adImpCountpastNo description
C3UID5 yearsNo description available.
C3UID-9245 yearsNo description
fc5 months 27 daysNo description available.
pfpastNo description
pxs5 months 27 daysNo description available.
SAVE & ACCEPT
Powered by CookieYes Logo