It seems fairly widely accepted that Sefer Yetzirah, one of the primary books of Kabbalah, is attributed to Avraham Avinu. Why is that?
For the same reason that the Zohar is attributed to R. Shimon Bar Yochai. The last section of Sefer Yetzira says, or implies that Abraham was the teacher of these principles in the Sefer Yetzira.
Chapter 1 section 3 reads:
This quote references the brit of the parts, where Gd promises Abraham that we will become a great nation.
And then at the end, Chapter 6 section 4 reads:
This section is read to be a reference to the food prepared for the 3 angels / guests.
Since nobody else is mentioned, this is taken to mean that Sefer Yetzirah is a book of Abraham's. Meaning these were the things he did.
However, the book is also attributed to Rabbi Akiva. And is never referenced before the first century.
Mystics (the Chida) assert that the Biblical patriarch Abraham used the sefer yetzira to create the calves prepared for the three angels who foretold Sarah's pregnancy in the Biblical account at Genesis 18:7
However, in the above link some attribute it to Adam who passed it onto Noach and then to Avraham